forked from qt-creator/qt-creator
VCS: Always set window title when repository is changed
Change-Id: I74be65ab4bdec45b3a9679dfd86c112b38358cd6 Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
6a87d8d347
commit
ffae1fcb24
@@ -593,8 +593,8 @@ void VcsBasePlugin::slotStateChanged(const VcsBase::Internal::State &newInternal
|
|||||||
if (!d->m_state.equals(newInternalState)) {
|
if (!d->m_state.equals(newInternalState)) {
|
||||||
d->m_state.setState(newInternalState);
|
d->m_state.setState(newInternalState);
|
||||||
updateActions(VcsEnabled);
|
updateActions(VcsEnabled);
|
||||||
Core::EditorManager::setWindowTitleVcsTopic(vc->vcsTopic(d->m_state.topLevel()));
|
|
||||||
}
|
}
|
||||||
|
Core::EditorManager::setWindowTitleVcsTopic(vc->vcsTopic(d->m_state.topLevel()));
|
||||||
} else {
|
} else {
|
||||||
// Some other VCS plugin or state changed: Reset us to empty state.
|
// Some other VCS plugin or state changed: Reset us to empty state.
|
||||||
const ActionState newActionState = vc ? OtherVcsEnabled : NoVcsEnabled;
|
const ActionState newActionState = vc ? OtherVcsEnabled : NoVcsEnabled;
|
||||||
|
|||||||
Reference in New Issue
Block a user