Commit 8f0e45cf authored by mae's avatar mae
Browse files

make sure there is always a correct current view

parent 9da539fd
......@@ -539,7 +539,9 @@ Core::Internal::SplitterOrView *EditorManager::currentView() const
SplitterOrView *view = m_d->m_currentView;
if (!view)
view = m_d->m_splitter->findView(m_d->m_currentEditor);
view = m_d->m_currentEditor?
return view;
Supports Markdown
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