OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da539f
)
make sure there is always a correct current view
author
mae
<qt-info@nokia.com>
Thu, 11 Jun 2009 12:31:40 +0000
(14:31 +0200)
committer
mae
<qt-info@nokia.com>
Thu, 11 Jun 2009 12:31:57 +0000
(14:31 +0200)
src/plugins/coreplugin/editormanager/editormanager.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/coreplugin/editormanager/editormanager.cpp
b/src/plugins/coreplugin/editormanager/editormanager.cpp
index
e7e717d
..
ac7882e
100644
(file)
--- a/
src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/
src/plugins/coreplugin/editormanager/editormanager.cpp
@@
-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;
}