Commit 8f0e45cf authored by mae's avatar mae

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?
m_d->m_splitter->findView(m_d->m_currentEditor):
m_d->m_splitter->findFirstView();
return view;
}
......
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