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