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

@@ -555,9 +555,9 @@ void BaseTextEditorWidget::updateCannotDecodeInfo()
}
}
bool BaseTextEditorWidget::open(QString *errorString, const QString &fileName)
bool BaseTextEditorWidget::open(QString *errorString, const QString &fileName, const QString &realFileName)
{
if (d->m_document->open(errorString, fileName)) {
if (d->m_document->open(errorString, fileName, realFileName)) {
moveCursor(QTextCursor::Start);
updateCannotDecodeInfo();
return true;