Corrected a bug that prevented sylpheed to open
[claws.git] / src / textview.c
index 7390889ff80e47320957a8b4b8853fade7b5e19a..f30c0d46eceda0e4453b514fa376637a2dbb0aa9 100644 (file)
@@ -1684,9 +1684,8 @@ static gint textview_button_released(GtkWidget *widget, GdkEventButton *event,
                        if (textview->cur_pos >= uri->start &&
                            textview->cur_pos <  uri->end) {
                                /* single click: display url in statusbar */
                        if (textview->cur_pos >= uri->start &&
                            textview->cur_pos <  uri->end) {
                                /* single click: display url in statusbar */
-                               if (event->button == 1) {
-                                       if (textview->messageview->mainwin
-                                       && textview->last_buttonpress != GDK_2BUTTON_PRESS) {
+                               if (event->button == 1 && textview->last_buttonpress != GDK_2BUTTON_PRESS) {
+                                       if (textview->messageview->mainwin) {
                                                if (textview->show_url_msgid) {
                                                        gtk_timeout_remove(textview->show_url_timeout_tag);
                                                        gtk_statusbar_remove(GTK_STATUSBAR(
                                                if (textview->show_url_msgid) {
                                                        gtk_timeout_remove(textview->show_url_timeout_tag);
                                                        gtk_statusbar_remove(GTK_STATUSBAR(