Tray notification: Don't show a message about modified folder #3613
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 1 Sep 2015 09:29:37 +0000 (11:29 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 1 Sep 2015 09:29:37 +0000 (11:29 +0200)
src/gui/folder.cpp

index 5b0f4b0c82c6ba523782ae9f777993ced730ccab..ea9056df13a1e4ae08ff3bba3a32c289c5ae31bf 100644 (file)
@@ -441,9 +441,11 @@ void Folder::bubbleUpSyncResult()
                     break;
                 case CSYNC_INSTRUCTION_CONFLICT:
                 case CSYNC_INSTRUCTION_SYNC:
-                    updatedItems++;
-                    if (!firstItemUpdated)
-                        firstItemUpdated = item;
+                    if (!item->_isDirectory) {
+                        updatedItems++;
+                        if (!firstItemUpdated)
+                            firstItemUpdated = item;
+                    }
                     break;
                 case CSYNC_INSTRUCTION_ERROR:
                     qDebug() << "Got Instruction ERROR. " << _syncResult.errorString();