inform the revision control observer about changed revision states

svn path=/trunk/KDE/kdebase/apps/; revision=1004351
This commit is contained in:
Peter Penz 2009-07-29 22:03:11 +00:00
parent a70be712fd
commit 1abf1974f5
3 changed files with 7 additions and 5 deletions

View 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()));
}
}

View file

@ -302,6 +302,7 @@ void SubversionPlugin::slotOperationCompleted()
{
if (m_contextItems.isEmpty()) {
emit operationCompletedMessage(m_operationCompletedMsg);
emit revisionStatesChanged();
} else {
startSvnCommandProcess();
}

View 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