Fix target folder colorization after one of last syncs.
authorDarko Koruga <darko@users.sourceforge.net>
Fri, 26 Apr 2002 05:39:31 +0000 (05:39 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Fri, 26 Apr 2002 05:39:31 +0000 (05:39 +0000)
ChangeLog.claws
configure.in
src/summaryview.c

index d7e5923..c955d3f 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-26 [darko]     0.7.4claws99
+
+       * src/summaryview.c
+               fix target folder colorization
+
 2002-04-25 [paul]      0.7.4claws98
 
        * po/it.po
index 2921c02..19be4fd 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws98
+EXTRA_VERSION=claws99
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 212a974..5ca1427 100644 (file)
@@ -3522,6 +3522,10 @@ static void summary_execute_move_func(GtkCTree *ctree, GtkCTreeNode *node,
        msginfo = GTKUT_CTREE_NODE_GET_ROW_DATA(node);
 
        if (msginfo && MSG_IS_MOVE(msginfo->flags) && msginfo->to_folder) {
+               if (!prefs_common.immediate_exec &&
+                   msginfo->to_folder->op_count > 0)
+                       msginfo->to_folder->op_count--;
+
                g_hash_table_insert(summaryview->folder_table,
                                    msginfo->to_folder, GINT_TO_POINTER(1));
 
@@ -3570,6 +3574,10 @@ static void summary_execute_copy_func(GtkCTree *ctree, GtkCTreeNode *node,
        msginfo = GTKUT_CTREE_NODE_GET_ROW_DATA(node);
 
        if (msginfo && MSG_IS_COPY(msginfo->flags) && msginfo->to_folder) {
+               if (!prefs_common.immediate_exec &&
+                   msginfo->to_folder->op_count > 0)
+                       msginfo->to_folder->op_count--;
+
                g_hash_table_insert(summaryview->folder_table,
                                    msginfo->to_folder, GINT_TO_POINTER(1));