add auto-saving of modified editors

Task-number: QTCREATORBUG-2847
This commit is contained in:
Oswald Buddenhagen
2011-05-10 20:43:03 +02:00
parent a14955d0fb
commit 9ac137fb06
48 changed files with 398 additions and 89 deletions

View File

@@ -173,11 +173,12 @@ ProjectFilesDocument::ProjectFilesDocument(Manager *manager)
ProjectFilesDocument::~ProjectFilesDocument()
{ }
bool ProjectFilesDocument::save(QString *errorString, const QString &name)
bool ProjectFilesDocument::save(QString *errorString, const QString &name, bool autoSave)
{
if (! BaseTextDocument::save(errorString, name))
if (!BaseTextDocument::save(errorString, name, autoSave))
return false;
m_manager->notifyChanged(name);
if (!autoSave)
m_manager->notifyChanged(name);
return true;
}