Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
aa903b63
Commit
aa903b63
authored
Jan 05, 2011
by
con
Browse files
Fix crash in editor manager.
parent
bc0568ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
aa903b63
...
...
@@ -963,7 +963,8 @@ Core::IEditor *EditorManager::placeEditor(Core::Internal::EditorView *view, Core
void
EditorManager
::
activateEditor
(
Core
::
IEditor
*
editor
,
OpenEditorFlags
flags
)
{
EditorView
*
view
=
m_d
->
m_splitter
->
findView
(
editor
)
->
view
();
SplitterOrView
*
splitterOrView
=
m_d
->
m_splitter
->
findView
(
editor
);
EditorView
*
view
=
(
splitterOrView
?
splitterOrView
->
view
()
:
0
);
// TODO an IEditor doesn't have to belong to a view, which makes this method a bit funny
if
(
!
view
)
view
=
currentEditorView
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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