diff options
author | hjk <[email protected]> | 2024-02-02 08:48:30 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2024-02-07 14:23:46 +0000 |
commit | be33c807a64a217c5e20b87d752087ba239a72e9 (patch) | |
tree | c2e346f42fd8f8e121e01f89a83818619bdeb79c /src/plugins/debugger/debuggerplugin.cpp | |
parent | 91e72756fb4d4d72a7f3f6af80d72da5a662cf64 (diff) |
ProjectExplorer: Remove PEPlugin::finishedInitialization() signal
It was only used once in the debugger, connect more directly there.
Change-Id: I96923a308adfd343daeab6574e097f24bf0654d5
Reviewed-by: <[email protected]>
Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e49e429f775..d2647f3d7b9 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -44,6 +44,7 @@ #include <coreplugin/navigationwidget.h> #include <coreplugin/outputpane.h> #include <coreplugin/rightpane.h> +#include <coreplugin/session.h> #include <extensionsystem/iplugin.h> #include <extensionsystem/pluginmanager.h> @@ -787,9 +788,10 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments) ICore::addAdditionalContext(debuggerNotRunning); m_arguments = arguments; - if (!m_arguments.isEmpty()) - connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::finishedInitialization, + if (!m_arguments.isEmpty()) { + connect(SessionManager::instance(), &SessionManager::startupSessionRestored, this, &DebuggerPluginPrivate::parseCommandLineArguments); + } // Menus m_menu = ActionManager::createMenu(M_DEBUG_ANALYZER); |