Commit b93fe5a4 authored by Eike Ziller's avatar Eike Ziller

EditorManager: Fix timing of aboutToSave signal

"Save as" sent it before even the new name was asked.

Change-Id: I8f791689267e57e63d51990af96373f653e54943
Reviewed-by: David Schulz's avatarDavid Schulz <>
parent 5992c744
......@@ -2100,7 +2100,6 @@ bool EditorManagerPrivate::saveDocumentAs(IDocument *document)
if (!document)
return false;
emit m_instance->aboutToSave(document);
Utils::MimeDatabase mdb;
const QString filter = Utils::MimeDatabase::allFiltersString();
QString selectedFilter;
......@@ -2130,6 +2129,7 @@ bool EditorManagerPrivate::saveDocumentAs(IDocument *document)
EditorManager::closeDocuments(QList<IDocument *>() << otherDocument, false);
emit m_instance->aboutToSave(document);
const bool success = DocumentManager::saveDocument(document, absoluteFilePath);
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