From 6e95d01c94b314eccd71fbad247a78f94c4e7aa1 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 2 Sep 2024 21:43:23 +0200 Subject: [PATCH] Main: Find core plugin by Id rather than by name Amends: 587cf11530af1b77dc626dd4d373e0b3decb3f21 Change-Id: Ibcbe5778b70a090b852efaf86eea90e0d163c137 Reviewed-by: Marcus Tillmanns --- src/app/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index de53ed51d20..b49aa59b942 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -58,7 +58,7 @@ using namespace Utils; enum { OptionIndent = 4, DescriptionIndent = 34 }; -const char corePluginNameC[] = "Core"; +const char corePluginIdC[] = "core"; const char fixedOptionsC[] = " [OPTION]... [FILE]...\n" "Options:\n" @@ -841,7 +841,7 @@ int main(int argc, char **argv) const PluginSpecs plugins = PluginManager::plugins(); PluginSpec *coreplugin = nullptr; for (PluginSpec *spec : plugins) { - if (spec->name() == QLatin1String(corePluginNameC)) { + if (spec->id() == QLatin1String(corePluginIdC)) { coreplugin = spec; break; }