forked from qt-creator/qt-creator
add auto-saving of modified editors
Task-number: QTCREATORBUG-2847
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user