From a5aef9141144ad07846ed7c434ea8925967d2cd6 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 9 Aug 2021 14:21:36 +0200 Subject: [PATCH] ExtensionSystem: Add settingspath to system information This information is re-used inside the System Information dialog. Change-Id: I71d2b9a1574ea1cd3f68349d974555ec5625f185 Reviewed-by: Eike Ziller --- src/libs/extensionsystem/pluginmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index df42ed195dd..0940d21c034 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -434,6 +434,10 @@ QString PluginManager::systemInformation() result += QLatin1String(spec->isEffectivelyEnabled() ? "+ " : " ") + filled(spec->name(), size) + " " + spec->version() + "\n"; } + QString settingspath = QFileInfo(settings()->fileName()).path(); + if (settingspath.startsWith(QDir::homePath())) + settingspath.replace(QDir::homePath(), "~"); + result += "\nUsed settingspath: " + settingspath + "\n"; return result; }