forked from qt-creator/qt-creator
Main: Find core plugin by Id rather than by name
Amends: 587cf11530
Change-Id: Ibcbe5778b70a090b852efaf86eea90e0d163c137
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user