Commit 7fe9bcdb authored by hjk's avatar hjk

CppEditor: Don't try to set mimetype when opening failed

Change-Id: Ie0823acc3dfd216c3f22a93ee39d9919bf95c0a9
Reviewed-by: default avatarEike Ziller <>
parent b4c3cef8
......@@ -1876,10 +1876,11 @@ Core::Id CPPEditor::id() const
bool CPPEditor::open(QString *errorString, const QString &fileName, const QString &realFileName)
bool b = TextEditor::BaseTextEditor::open(errorString, fileName, realFileName);
if (!TextEditor::BaseTextEditor::open(errorString, fileName, realFileName))
return false;
return b;
return true;
const Utils::CommentDefinition *CPPEditor::commentDefinition() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment