EditorManager: Close documents instead of editors where appropriate

This is the first step in actually making "closeEditor(s)" close editors
instead of documents.

Change-Id: I02761e0cef950b8fc093f65a90df04a9a7550681
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2014-08-15 16:23:32 +02:00
parent 5a0a61bfac
commit 8a31388f40
8 changed files with 22 additions and 15 deletions

View File

@@ -77,7 +77,8 @@ SourceAgentPrivate::SourceAgentPrivate()
SourceAgentPrivate::~SourceAgentPrivate()
{
EditorManager::closeEditor(editor);
if (editor)
EditorManager::closeDocument(editor->document());
editor = 0;
delete locationMark;
}