From: Peter Penz Date: Wed, 29 Jul 2009 22:03:11 +0000 (+0000) Subject: inform the revision control observer about changed revision states X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/1abf1974f5c356c56ca86147d65c90f1306b650f inform the revision control observer about changed revision states svn path=/trunk/KDE/kdebase/apps/; revision=1004351 --- diff --git a/src/revisioncontrolobserver.cpp b/src/revisioncontrolobserver.cpp index 7745dbe43..f47ef3bcb 100644 --- a/src/revisioncontrolobserver.cpp +++ b/src/revisioncontrolobserver.cpp @@ -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())); } } diff --git a/src/revisioncontrolplugin.cpp b/src/revisioncontrolplugin.cpp index bc50d28c7..79e35e386 100644 --- a/src/revisioncontrolplugin.cpp +++ b/src/revisioncontrolplugin.cpp @@ -302,6 +302,7 @@ void SubversionPlugin::slotOperationCompleted() { if (m_contextItems.isEmpty()) { emit operationCompletedMessage(m_operationCompletedMsg); + emit revisionStatesChanged(); } else { startSvnCommandProcess(); } diff --git a/src/revisioncontrolplugin.h b/src/revisioncontrolplugin.h index 939fa6f57..b72968504 100644 --- a/src/revisioncontrolplugin.h +++ b/src/revisioncontrolplugin.h @@ -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