┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-07-29 22:03:11 +0000
committerPeter Penz <[email protected]>2009-07-29 22:03:11 +0000
commit1abf1974f5c356c56ca86147d65c90f1306b650f (patch)
tree80e48b302c902414bf2b3b8cf55928ff0805fb7c /src
parenta70be712fd5b33071c4733c47f810948d86dd4d8 (diff)
inform the revision control observer about changed revision states
svn path=/trunk/KDE/kdebase/apps/; revision=1004351
Diffstat (limited to 'src')
-rw-r--r--src/revisioncontrolobserver.cpp4
-rw-r--r--src/revisioncontrolplugin.cpp1
-rw-r--r--src/revisioncontrolplugin.h7
3 files changed, 7 insertions, 5 deletions
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