From 841bd52e07c07aec8efcd48d459c9cc4d2b210b9 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 1 Feb 2022 12:05:20 +0100 Subject: [PATCH] PluginView: Fix crash Without a running QC we still need to initialize the plugin manager properly. Change-Id: Ia2a83080f68de9f88d214f5afbcb6a07f31daea9 Reviewed-by: Eike Ziller --- tests/manual/pluginview/plugindialog.cpp | 2 ++ 1 file changed, 2 insertions(+) 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,