forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8'
Conflicts: src/plugins/android/androidrunnerworker.cpp Change-Id: Ibd8b99435365fb7e7d488313fd1d2b3a75adad1b
This commit is contained in:
@@ -384,7 +384,12 @@ void DebuggerMainWindowPrivate::selectPerspective(Perspective *perspective)
|
||||
if (m_currentPerspective)
|
||||
m_currentPerspective->d->restoreLayout();
|
||||
|
||||
const int index = indexInChooser(m_currentPerspective);
|
||||
int index = indexInChooser(m_currentPerspective);
|
||||
if (index == -1) {
|
||||
if (Perspective *parent = Perspective::findPerspective(m_currentPerspective->d->m_parentPerspectiveId))
|
||||
index = indexInChooser(parent);
|
||||
}
|
||||
|
||||
if (index != -1) {
|
||||
m_perspectiveChooser->setCurrentIndex(index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user