Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8f0e45cf
Commit
8f0e45cf
authored
Jun 11, 2009
by
mae
Browse files
make sure there is always a correct current view
parent
9da539fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
8f0e45cf
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment