forked from qt-creator/qt-creator
add auto-saving of modified editors
Task-number: QTCREATORBUG-2847
This commit is contained in:
@@ -69,9 +69,9 @@ void SubmitEditorFile::setModified(bool modified)
|
||||
emit changed();
|
||||
}
|
||||
|
||||
bool SubmitEditorFile::save(QString *errorString, const QString &fileName)
|
||||
bool SubmitEditorFile::save(QString *errorString, const QString &fileName, bool autoSave)
|
||||
{
|
||||
emit saveMe(errorString, fileName);
|
||||
emit saveMe(errorString, fileName, autoSave);
|
||||
if (!errorString->isEmpty())
|
||||
return false;
|
||||
emit changed();
|
||||
|
||||
Reference in New Issue
Block a user