aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-08-13 17:11:36 +0200
committerTim Jenssen <tim.jenssen@qt.io>2019-08-13 15:18:19 +0000
commitb7bc7c25f5c620b3470b5e76cbd581c06361b6b8 (patch)
treeba437f0263f0dfde48595bd093724bd57be8f83b /src/plugins/studiowelcome
parentd9537a9a8affc34326ca1a18c4ae9ecbd36f398c (diff)
StudioWelcome: Always check for community edition
Change-Id: I9dc9bfc022c2611cb6bb9dc47820368e17d561e4 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/studiowelcome')
-rw-r--r--src/plugins/studiowelcome/studiowelcomeplugin.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
index c7db6969d2..4cd6d35701 100644
--- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp
+++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp
@@ -32,6 +32,9 @@
#include <coreplugin/imode.h>
#include <coreplugin/modemanager.h>
+#include <extensionsystem/pluginmanager.h>
+#include <extensionsystem/pluginspec.h>
+
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectmanager.h>
@@ -127,11 +130,10 @@ ProjectModel::ProjectModel(QObject *parent)
this,
&ProjectModel::resetProjects);
-#ifdef LICENSECHECKER
+
if (!Utils::findOrDefault(ExtensionSystem::PluginManager::plugins(),
- Utils::equal(&ExtensionSystem::PluginSpec::name, QString("LicenseChecker"))))
+ Utils::equal(&ExtensionSystem::PluginSpec::name, QString("LicenseChecker"))))
m_communityVersion = true;
-#endif
}
int ProjectModel::rowCount(const QModelIndex &) const