]> cloud.milkyroute.net Git - dolphin.git/commitdiff
inform the revision control observer about changed revision states
authorPeter Penz <peter.penz19@gmail.com>
Wed, 29 Jul 2009 22:03:11 +0000 (22:03 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 29 Jul 2009 22:03:11 +0000 (22:03 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1004351

src/revisioncontrolobserver.cpp
src/revisioncontrolplugin.cpp
src/revisioncontrolplugin.h

index 7745dbe431a88ba41b51bc232ddaf4b5714bef60..f47ef3bcbeccac6539132844566c572a38ce00b8 100644 (file)
@@ -208,7 +208,7 @@ void RevisionControlObserver::verifyDirectory()
                     this, SLOT(delayedDirectoryVerification()));
             connect(m_dirLister, SIGNAL(newItems(const KFileItemList&)),
                     this, SLOT(delayedDirectoryVerification()));
-            connect(m_plugin, SIGNAL(revisionStatesChanged(const QString&)),
+            connect(m_plugin, SIGNAL(revisionStatesChanged()),
                     this, SLOT(delayedDirectoryVerification()));
         }
         updateItemStates();
@@ -223,7 +223,7 @@ void RevisionControlObserver::verifyDirectory()
                    this, SLOT(delayedDirectoryVerification()));
         disconnect(m_dirLister, SIGNAL(newItems(const KFileItemList&)),
                    this, SLOT(delayedDirectoryVerification()));
-        disconnect(m_plugin, SIGNAL(revisionStatesChanged(const QString&)),
+        disconnect(m_plugin, SIGNAL(revisionStatesChanged()),
                    this, SLOT(delayedDirectoryVerification()));
     }
 }
index bc50d28c74837539ca9ea136e7d9286eb59f2f08..79e35e386b61d4f5fc0cd55d900378e13c564040 100644 (file)
@@ -302,6 +302,7 @@ void SubversionPlugin::slotOperationCompleted()
 {
     if (m_contextItems.isEmpty()) {
         emit operationCompletedMessage(m_operationCompletedMsg);
+        emit revisionStatesChanged();
     } else {
         startSvnCommandProcess();
     }
index 939fa6f57e63dad5fd63f4eeaed09dc679be6e15..b72968504936a2f1a6d31fa3d7ed605b78a5ec5d 100644 (file)
@@ -129,14 +129,15 @@ public:
 
 signals:
     /**
-     * Should be emitted when the revision state of files has been changed
-     * after the last retrieval. The file manager will be triggered to
+     * Should be emitted when the revision state of files might have been changed
+     * after the last retrieval (e. g. by executing a context menu action
+     * of the revision control plugin). The file manager will be triggered to
      * update the revision states of the directory \p directory by invoking
      * RevisionControlPlugin::beginRetrieval(),
      * RevisionControlPlugin::revisionState() and
      * RevisionControlPlugin::endRetrieval().
      */
-    void revisionStatesChanged(const QString& directory);
+    void revisionStatesChanged();
 
     /**
      * Is emitted if an information message with the content \a msg