Commit 5433c853 authored by con's avatar con
Browse files

Fixes: - Crash when opening form editor

RevBy:    - done with dt
Details:  - There was an addition setCurrentEditor signal with the old
editor sent while opening the new editor, coming from adding the new entry
into the model for the editor combo box.
parent 4242ce7c
......@@ -217,7 +217,6 @@ void StackedEditorGroup::addEditor(IEditor *editor)
void StackedEditorGroup::insertEditor(int index, IEditor *editor)
{
EditorGroup::insertEditor(index, editor);
if (m_container->indexOf(editor->widget()) != -1)
return;
......@@ -231,6 +230,9 @@ void StackedEditorGroup::insertEditor(int index, IEditor *editor)
}
connect(editor, SIGNAL(changed()), this, SLOT(checkEditorStatus()));
bool block = m_editorList->blockSignals(true);
EditorGroup::insertEditor(index, editor);
m_editorList->blockSignals(block);
emit editorAdded(editor);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment