diff options
| author | Peter Penz <[email protected]> | 2010-03-24 22:41:06 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-24 22:41:06 +0000 |
| commit | d197a7e5319cb86ab3479c23828af226365d6049 (patch) | |
| tree | 1943899cb51baa444d69cd6bcf5f62aea0f993ba /src/versioncontrol/versioncontrolobserver.cpp | |
| parent | 884e95cc985ccf3a7d9de9ebe0d9b1bbd2d9e706 (diff) | |
Renamed methods and improved documentation, as in the previous patch the wrong mutex has been used accidently because of the confusing naming of the methods.
svn path=/trunk/KDE/kdebase/apps/; revision=1107136
Diffstat (limited to 'src/versioncontrol/versioncontrolobserver.cpp')
| -rw-r--r-- | src/versioncontrol/versioncontrolobserver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/versioncontrol/versioncontrolobserver.cpp b/src/versioncontrol/versioncontrolobserver.cpp index cab62be39..c1ef4b54b 100644 --- a/src/versioncontrol/versioncontrolobserver.cpp +++ b/src/versioncontrol/versioncontrolobserver.cpp @@ -99,9 +99,9 @@ VersionControlObserver::~VersionControlObserver() QList<QAction*> VersionControlObserver::contextMenuActions(const KFileItemList& items) const { QList<QAction*> actions; - if (isVersioned() && m_updateItemStatesThread->beginReadItemStates()) { + if (isVersioned() && m_updateItemStatesThread->lockPlugin()) { actions = m_plugin->contextMenuActions(items); - m_updateItemStatesThread->endReadItemStates(); + m_updateItemStatesThread->unlockPlugin(); } return actions; } @@ -109,9 +109,9 @@ QList<QAction*> VersionControlObserver::contextMenuActions(const KFileItemList& QList<QAction*> VersionControlObserver::contextMenuActions(const QString& directory) const { QList<QAction*> actions; - if (isVersioned() && m_updateItemStatesThread->beginReadItemStates()) { + if (isVersioned() && m_updateItemStatesThread->lockPlugin()) { actions = m_plugin->contextMenuActions(directory); - m_updateItemStatesThread->endReadItemStates(); + m_updateItemStatesThread->unlockPlugin(); } return actions; |
