2004-11-08 [colin] 0.9.12cvs143
authorColin Leroy <colin@colino.net>
Mon, 8 Nov 2004 18:33:53 +0000 (18:33 +0000)
committerColin Leroy <colin@colino.net>
Mon, 8 Nov 2004 18:33:53 +0000 (18:33 +0000)
* src/summaryview.c
Prevent useless folder count updates while
quicksearch is running. It is really annoying
while quicksearch is running a full-mail
scan, like 'b foo', in a big folder.

ChangeLog.claws
PATCHSETS
configure.ac
src/summaryview.c

index b266965..f2618f1 100644 (file)
@@ -1,3 +1,11 @@
+2004-11-08 [colin]     0.9.12cvs143
+
+       * src/summaryview.c
+               Prevent useless folder count updates while 
+               quicksearch is running. It is really annoying 
+               while quicksearch is running a full-mail
+               scan, like 'b foo', in a big folder.
+
 2004-11-08 [colin]     0.9.12cvs142
 
        * src/textview.c
index fe654c4..114208c 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.452 -r 1.453 src/compose.c; ) > 0.9.12cvs140.patchset
 ( cvs diff -u -r 1.126 -r 1.127 src/textview.c; ) > 0.9.12cvs141.patchset
 ( cvs diff -u -r 1.127 -r 1.128 src/textview.c; ) > 0.9.12cvs142.patchset
+( cvs diff -u -r 1.449 -r 1.450 src/summaryview.c; ) > 0.9.12cvs143.patchset
index 84e43e6..ae85987 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=142
+EXTRA_VERSION=143
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index 17f3e2e..a5b343a 100644 (file)
@@ -807,6 +807,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
        if (summaryview->mainwin->lock_count == 0 &&
            (summaryview->moved > 0 || summaryview->copied > 0)) {
                AlertValue val;
+               gboolean changed = FALSE;
 
                val = alertpanel(_("Process mark"),
                                 _("Some marks are left. Process it?"),
@@ -815,6 +816,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                        summary_unlock(summaryview);
                        summary_execute(summaryview);
                        summary_lock(summaryview);
+                       changed = TRUE;
                } else if (G_ALERTALTERNATE == val) {
                        /* DO NOTHING */
                } else {
@@ -822,7 +824,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                        inc_unlock();
                        return FALSE;
                }
-               folder_update_op_count();
+               if (changed || !quicksearch_is_active(summaryview->quicksearch))
+                       folder_update_op_count();
        }
        
        gtk_clist_freeze(GTK_CLIST(ctree));