forked from qt-creator/qt-creator
add auto-saving of modified editors
Task-number: QTCREATORBUG-2847
This commit is contained in:
@@ -205,10 +205,10 @@ QString GLSLEditorEditable::id() const
|
||||
return QLatin1String(GLSLEditor::Constants::C_GLSLEDITOR_ID);
|
||||
}
|
||||
|
||||
bool GLSLEditorEditable::open(QString *errorString, const QString &fileName)
|
||||
bool GLSLEditorEditable::open(QString *errorString, const QString &fileName, const QString &realFileName)
|
||||
{
|
||||
editorWidget()->setMimeType(Core::ICore::instance()->mimeDatabase()->findByFile(QFileInfo(fileName)).type());
|
||||
bool b = TextEditor::BaseTextEditor::open(errorString, fileName);
|
||||
bool b = TextEditor::BaseTextEditor::open(errorString, fileName, realFileName);
|
||||
return b;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user