Fixes: Prevent setCurrentEditor(0) if in fact we still have an

editor.

Task:     -
RevBy:    -
AutoTest: -
Details:  -
This commit is contained in:
dt
2009-02-04 16:23:43 +01:00
parent e14018076d
commit 4acbcc7606

View File

@@ -462,6 +462,7 @@ bool EditorManager::unregisterEditor(IEditor *editor)
return false;
}
void EditorManager::updateCurrentEditorAndGroup(IContext *context)
{
if (debugEditorManager)
@@ -470,7 +471,8 @@ void EditorManager::updateCurrentEditorAndGroup(IContext *context)
IEditor *editor = context ? qobject_cast<IEditor*>(context) : 0;
if (groupContext) {
m_d->m_splitter->setCurrentGroup(groupContext->editorGroup());
setCurrentEditor(0);
if (groupContext->editorGroup()->editorCount() == 0)
setCurrentEditor(0);
updateActions();
} else if (editor) {
setCurrentEditor(editor);