[Pkg-owncloud-commits] [owncloud-client] 329/470: Folderman: Remove one call to updateFolderView.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 12330b38e9d507e8b6736637c55d15f94db61a4f
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Apr 14 15:26:11 2016 +0200

    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 006555f..8c51681 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 754291e..46a9c83 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list