forked from qt-creator/qt-creator
ProjectExplorer: Remove PEPlugin::finishedInitialization() signal
It was only used once in the debugger, connect more directly there. Change-Id: I96923a308adfd343daeab6574e097f24bf0654d5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include <coreplugin/navigationwidget.h>
|
#include <coreplugin/navigationwidget.h>
|
||||||
#include <coreplugin/outputpane.h>
|
#include <coreplugin/outputpane.h>
|
||||||
#include <coreplugin/rightpane.h>
|
#include <coreplugin/rightpane.h>
|
||||||
|
#include <coreplugin/session.h>
|
||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
@@ -787,9 +788,10 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
|
|||||||
ICore::addAdditionalContext(debuggerNotRunning);
|
ICore::addAdditionalContext(debuggerNotRunning);
|
||||||
|
|
||||||
m_arguments = arguments;
|
m_arguments = arguments;
|
||||||
if (!m_arguments.isEmpty())
|
if (!m_arguments.isEmpty()) {
|
||||||
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::finishedInitialization,
|
connect(SessionManager::instance(), &SessionManager::startupSessionRestored,
|
||||||
this, &DebuggerPluginPrivate::parseCommandLineArguments);
|
this, &DebuggerPluginPrivate::parseCommandLineArguments);
|
||||||
|
}
|
||||||
|
|
||||||
// Menus
|
// Menus
|
||||||
m_menu = ActionManager::createMenu(M_DEBUG_ANALYZER);
|
m_menu = ActionManager::createMenu(M_DEBUG_ANALYZER);
|
||||||
|
|||||||
@@ -1897,10 +1897,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
&ProjectWelcomePage::requestProject,
|
&ProjectWelcomePage::requestProject,
|
||||||
m_instance,
|
m_instance,
|
||||||
&ProjectExplorerPlugin::openProjectWelcomePage);
|
&ProjectExplorerPlugin::openProjectWelcomePage);
|
||||||
connect(SessionManager::instance(),
|
|
||||||
&SessionManager::startupSessionRestored,
|
|
||||||
m_instance,
|
|
||||||
&ProjectExplorerPlugin::finishedInitialization);
|
|
||||||
dd->updateWelcomePage();
|
dd->updateWelcomePage();
|
||||||
|
|
||||||
MacroExpander *expander = Utils::globalMacroExpander();
|
MacroExpander *expander = Utils::globalMacroExpander();
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ namespace Core {
|
|||||||
class OutputWindow;
|
class OutputWindow;
|
||||||
} // Core
|
} // Core
|
||||||
|
|
||||||
namespace Utils { class CommandLine; }
|
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class CustomParserSettings;
|
class CustomParserSettings;
|
||||||
class FolderNode;
|
class FolderNode;
|
||||||
@@ -170,8 +168,6 @@ public:
|
|||||||
static Core::OutputWindow *buildSystemOutput();
|
static Core::OutputWindow *buildSystemOutput();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void finishedInitialization();
|
|
||||||
|
|
||||||
// Is emitted when a project has been added/removed,
|
// Is emitted when a project has been added/removed,
|
||||||
// or the file list of a specific project has changed.
|
// or the file list of a specific project has changed.
|
||||||
void fileListChanged();
|
void fileListChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user