Skip to content
Snippets Groups Projects
Commit 0468348a authored by hjk's avatar hjk
Browse files

outputpanemanager: fix potential crash in case of no outputpanes

Reviewed-by: dt
parent fe23f8de
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ void OutputPaneManager::init()
begin = sorted.constBegin();
it = sorted.constEnd();
int shortcutNumber = 1;
do {
while (it != begin) {
--it;
IOutputPane* outPane = it.value();
const int idx = m_outputWidgetPane->addWidget(outPane->outputWidget(this));
......@@ -283,7 +283,7 @@ void OutputPaneManager::init()
m_widgetComboBox->addItem(outPane->displayName(), idx);
connect(cmd->action(), SIGNAL(triggered()), this, SLOT(shortcutTriggered()));
} while (it != begin);
}
changePage();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment