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:
con
2009-12-15 16:42:56 +01:00
parent 16821dd852
commit d7e04f3b44
6 changed files with 9 additions and 43 deletions

View File

@@ -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