aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2022-02-01 12:05:20 +0100
committerChristian Stenger <[email protected]>2022-02-03 05:27:44 +0000
commit841bd52e07c07aec8efcd48d459c9cc4d2b210b9 (patch)
tree1b854df94aef0433ae3a18961111cfed4cb9a603
parentbc160ebe6381be91a5b6f9386f6253036f14f7c1 (diff)
PluginView: Fix crash
Without a running QC we still need to initialize the plugin manager properly. Change-Id: Ia2a83080f68de9f88d214f5afbcb6a07f31daea9 Reviewed-by: Eike Ziller <[email protected]>
-rw-r--r--tests/manual/pluginview/plugindialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/pluginview/plugindialog.cpp b/tests/manual/pluginview/plugindialog.cpp
index 550852ed529..9a0af5d449e 100644
--- a/tests/manual/pluginview/plugindialog.cpp
+++ b/tests/manual/pluginview/plugindialog.cpp
@@ -129,6 +129,8 @@ int main(int argc, char *argv[])
{
QApplication app(argc, argv);
ExtensionSystem::PluginManager manager;
+ manager.setSettings(new QtcSettings);
+
manager.setPluginIID(QLatin1String("plugin"));
setCreatorTheme(new Theme("default", &app));
QObject::connect(&app, &QCoreApplication::aboutToQuit,