From 12330b38e9d507e8b6736637c55d15f94db61a4f Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Thu, 14 Apr 2016 15:26:11 +0200 Subject: [PATCH] Folderman: Remove one call to updateFolderView. The reason is that updateFolderView is invoked by the emitted signal folderSyncStateChange() anyway. This will reduce the traffic over the SocketAPI nicely, maybe this was the reason why it was slower than before. --- src/gui/folderman.cpp | 5 ----- src/gui/socketapi.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 006555f3c..8c5168171 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -469,11 +469,6 @@ void FolderMan::slotScheduleSync( Folder *f ) } auto alias = f->alias(); - // We want the SocketAPI to already now update so that it can show the EVAL icon - // for files/folders. Only do this when not syncing, else we might get a lot - // of those notifications. - _socketApi->slotUpdateFolderView(f); - qDebug() << "Schedule folder " << alias << " to sync!"; if( ! _scheduleQueue.contains(f) ) { diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 754291e80..46a9c83b8 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -286,7 +286,7 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, QIODevice* Folder* syncFolder = FolderMan::instance()->folderForPath( argument ); if (!syncFolder) { // this can happen in offline mode e.g.: nothing to worry about - DEBUG << "folder offline or not watched:" << argument; + // DEBUG << "folder offline or not watched:" << argument; statusString = QLatin1String("NOP"); } else { const QString file = QDir::cleanPath(argument).mid(syncFolder->cleanPath().length()+1);