Commit 746a0ba2 authored by Eike Ziller's avatar Eike Ziller

EditorManager: saveEditor -> saveDocument

Change-Id: I1691b7231080320ff48efbbd7f870658a977ad0d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent dfbe8657
......@@ -2290,9 +2290,9 @@ IEditor *EditorManager::openEditorWithContents(Id editorId,
return edt;
}
bool EditorManager::saveEditor(IEditor *editor)
bool EditorManager::saveDocument(IDocument *document)
{
return EditorManagerPrivate::saveDocument(editor->document());
return EditorManagerPrivate::saveDocument(document);
}
bool EditorManager::hasSplitter()
......
......@@ -139,7 +139,7 @@ public:
static void addCurrentPositionToNavigationHistory(IEditor *editor = 0, const QByteArray &saveState = QByteArray());
static void cutForwardNavigationHistory();
static bool saveEditor(IEditor *editor);
static bool saveDocument(IDocument *document);
static bool closeEditors(const QList<IEditor *> &editorsToClose, bool askAboutModifiedEditors = true);
static void closeEditor(IEditor *editor, bool askAboutModifiedEditors = true);
......
......@@ -899,7 +899,7 @@ void BaseTextEditorWidget::selectEncoding()
break; }
case CodecSelector::Save:
doc->setCodec(codecSelector.selectedCodec());
Core::EditorManager::saveEditor(editor());
Core::EditorManager::saveDocument(textDocument());
updateTextCodecLabel();
break;
case CodecSelector::Cancel:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment