* src/mainwindow.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 14 Sep 2003 11:07:37 +0000 (11:07 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 14 Sep 2003 11:07:37 +0000 (11:07 +0000)
fix regression caused by fix for invalid bug #7
(should fix #246, "Multiple selections are deselected when
moving from search window to main window")

ChangeLog.claws
configure.ac
src/mainwindow.c

index 55e7664..f1ce75c 100644 (file)
@@ -1,3 +1,10 @@
+2003-04-14 [alfons]    0.9.5claws11
+
+       * src/mainwindow.c
+               fix regression caused by fix for invalid bug #7
+               (should fix #246, "Multiple selections are deselected when 
+               moving from search window to main window")
+               
 2003-09-14 [alfons]    0.9.5claws10
        
        * src/actions.[ch]
index 0932559..c2ec18c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=10
+EXTRA_VERSION=11
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 17be476..54df722 100644 (file)
@@ -2799,6 +2799,11 @@ static gboolean mainwindow_focus_in_event(GtkWidget *widget, GdkEventFocus *focu
        g_return_val_if_fail(data, FALSE);
        summary = ((MainWindow *)data)->summaryview;
        g_return_val_if_fail(summary, FALSE);
+
+       if (GTK_CLIST(summary->ctree)->selection && 
+           g_list_length(GTK_CLIST(summary->ctree)->selection) > 1)
+               return FALSE;
+
        if (summary->selected != summary->displayed)
                summary_select_node(summary, summary->displayed, FALSE, TRUE);
        return FALSE;