forked from qt-creator/qt-creator
Check QMLType when adding new QML files to project to prevent error message being shown
Change-Id: I68df3c69b535d47109bfb94c3089fd78e8b3683d Reviewed-on: http://codereview.qt.nokia.com/514 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -754,5 +754,7 @@ FileType typeForFileName(const Core::MimeDatabase *db, const QFileInfo &file)
|
||||
return ResourceType;
|
||||
if (typeName == QLatin1String(Constants::FORM_MIMETYPE))
|
||||
return FormType;
|
||||
if (typeName == QLatin1String(Constants::QML_MIMETYPE))
|
||||
return QMLType;
|
||||
return UnknownFileType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user