summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourceagent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/sourceagent.cpp')
-rw-r--r--src/plugins/debugger/sourceagent.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourceagent.cpp b/src/plugins/debugger/sourceagent.cpp
index b5bb5c8345..210528bf13 100644
--- a/src/plugins/debugger/sourceagent.cpp
+++ b/src/plugins/debugger/sourceagent.cpp
@@ -76,8 +76,7 @@ SourceAgentPrivate::SourceAgentPrivate()
SourceAgentPrivate::~SourceAgentPrivate()
{
- if (editor)
- EditorManager::instance()->closeEditor(editor);
+ EditorManager::closeEditor(editor);
editor = 0;
delete locationMark;
}