Commit a77e75c3 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlJS: Fix wrong conditions



Change-Id: I31740bca2b17e635c28af70779334f2b52ddb709
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 10e011c1
......@@ -65,11 +65,11 @@ bool ViewerContext::languageIsCompatible(Language::Enum l) const
return language == l;
case Language::Qml:
return l == Language::Qml || l == Language::QmlQtQuick1 || l == Language::QmlQtQuick2
|| Language::JavaScript;
|| l == Language::JavaScript;
case Language::QmlQtQuick1:
return l == Language::Qml || l == Language::QmlQtQuick1 || Language::JavaScript;
return l == Language::Qml || l == Language::QmlQtQuick1 || l == Language::JavaScript;
case Language::QmlQtQuick2:
return l == Language::Qml || l == Language::QmlQtQuick2 || Language::JavaScript;
return l == Language::Qml || l == Language::QmlQtQuick2 || l == Language::JavaScript;
case Language::Unknown: // ?
break;
}
......
Supports Markdown
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