diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 2b6f368..3ab60e6 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -163,7 +163,7 @@ DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager, const DebuggerS m_running(false) { init(); - + setDisplayName(QFileInfo(m_startParameters->executable).fileName()); if (m_startParameters->environment.empty()) m_startParameters->environment = ProjectExplorer::Environment().toStringList(); m_startParameters->useTerminal = false; diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index b758aa9..3ae6f60 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -232,6 +232,11 @@ QString RunControl::displayName() const return m_displayName; } +void RunControl::setDisplayName(const QString &name) +{ + m_displayName = name; +} + bool RunControl::sameRunConfiguration(RunControl *other) { return other->m_runConfiguration.data() == m_runConfiguration.data(); diff --git a/src/plugins/projectexplorer/runconfiguration.h b/src/plugins/projectexplorer/runconfiguration.h index 86efaf6..876a90b 100644 --- a/src/plugins/projectexplorer/runconfiguration.h +++ b/src/plugins/projectexplorer/runconfiguration.h @@ -181,6 +181,9 @@ signals: public slots: void bringApplicationToForeground(qint64 pid); +protected: + void setDisplayName(const QString &name); + private slots: void bringApplicationToForegroundInternal();