summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-05-09 13:30:44 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-07-25 14:29:03 +0000
commit96df9f918967dbe5fe5d9c457f10ed48cff4db1d (patch)
tree6a25b71af38fee6027dea678924c371c8ad1cb8c /src/plugins/qmljstools
parent4beaae0f79ebe820fa9fdfdfb8195e5aeac89369 (diff)
downloadqt-creator-96df9f918967dbe5fe5d9c457f10ed48cff4db1d.tar.gz
QmlJSModelManager: Simplify code
Change-Id: Idb4fef70063ce3b42c497e302e4b69bb73f314d7 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/qmljstools')
-rw-r--r--src/plugins/qmljstools/qmljsmodelmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp
index d28cc3ab87..9f05506ee0 100644
--- a/src/plugins/qmljstools/qmljsmodelmanager.cpp
+++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp
@@ -163,8 +163,7 @@ void setupProjectInfoQmlBundles(ModelManagerInterface::ProjectInfo &projectInfo)
if (projectInfo.project) {
QSet<Kit *> currentKits;
foreach (const Target *t, projectInfo.project->targets())
- if (t->kit())
- currentKits.insert(t->kit());
+ currentKits.insert(t->kit());
currentKits.remove(activeKit);
foreach (Kit *kit, currentKits) {
foreach (IBundleProvider *bp, bundleProviders)