diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-03-24 14:42:34 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-03-25 17:05:18 +0100 |
commit | d390f6e39741d700752ca5d401073712b172ce0d (patch) | |
tree | 69e347274a1ebe1000043a6755107af9f209ef72 /src/plugins/clearcase | |
parent | 72d116ba6b3ce5850109df6dd0b4e879c26f4917 (diff) |
ClearCase: Update view data when topLevel is changed
Change-Id: I9d471dea120dd78382245faac04acc9cd44c3b4a
Reviewed-by: Knut Petter Svendsen <knutpett@pvv.org>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/clearcase')
-rw-r--r-- | src/plugins/clearcase/clearcaseplugin.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp index ba615d06eda..eb4b2c91044 100644 --- a/src/plugins/clearcase/clearcaseplugin.cpp +++ b/src/plugins/clearcase/clearcaseplugin.cpp @@ -845,8 +845,13 @@ void ClearCasePlugin::updateActions(VcsBase::VcsBasePlugin::ActionState as) const VcsBase::VcsBasePluginState state = currentState(); const bool hasTopLevel = state.hasTopLevel(); m_commandLocator->setEnabled(hasTopLevel); - if (hasTopLevel) - m_topLevel = state.topLevel(); + if (hasTopLevel) { + const QString topLevel = state.topLevel(); + if (m_topLevel != topLevel) { + m_topLevel = topLevel; + m_viewData = ccGetView(topLevel); + } + } m_updateViewAction->setParameter(m_viewData.isDynamic ? QString() : m_viewData.name); |