diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 6aeb53a2203..7b05d761824 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -2534,6 +2534,9 @@ bool EditorManagerPrivate::saveDocumentAs(IDocument *document) // re-think part of the editors design. if (success) { + // if document had been temporary before (scratch buffer) - remove the temporary flag + document->setTemporary(false); + addDocumentToRecentFiles(document); emit m_instance->saved(document); }