Debugger: Stop launching when pressing the [x] on the Launching bar

Change-Id: I047652b551c920bd89916de14d202dfccd44ed72
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-05-27 17:27:31 +02:00
parent 2e91dd1f3d
commit f7c7dc0d52
2 changed files with 2 additions and 1 deletions

View File

@@ -498,6 +498,7 @@ void DebuggerEngine::startDebugger(DebuggerRunControl *runControl)
d->m_progress.setProgressRange(0, 1000);
FutureProgress *fp = ProgressManager::addTask(d->m_progress.future(),
tr("Launching Debugger"), "Debugger.Launcher");
connect(fp, SIGNAL(canceled()), this, SLOT(quitDebugger()));
fp->setKeepOnFinish(FutureProgress::HideOnFinish);
d->m_progress.reportStarted();

View File

@@ -253,7 +253,7 @@ public:
virtual void resetLocation();
virtual void gotoLocation(const Internal::Location &location);
virtual void quitDebugger(); // called by DebuggerRunControl
Q_SLOT virtual void quitDebugger(); // called by DebuggerRunControl
virtual void abortDebugger(); // called by DebuggerPlugin
virtual void updateViews();