forked from qt-creator/qt-creator
Remove output mode.
Replaced by the maximize and "More..." buttons. Edit mode is now the fallback mode for the output panes.
This commit is contained in:
@@ -93,7 +93,10 @@ void ModeManager::addWidget(QWidget *widget)
|
||||
|
||||
IMode *ModeManager::currentMode() const
|
||||
{
|
||||
return m_modes.at(m_modeStack->currentIndex());
|
||||
int currentIndex = m_modeStack->currentIndex();
|
||||
if (currentIndex < 0)
|
||||
return 0;
|
||||
return m_modes.at(currentIndex);
|
||||
}
|
||||
|
||||
int ModeManager::indexOf(const QString &id) const
|
||||
|
Reference in New Issue
Block a user