Debugger: Make showPromptToStopDialog static

No need to depend on RunControl life time here.

The isRunning test is already done outside sufficiently often.

Change-Id: I3b33444df6092f52b186bbf3a58585ad0bbb03bb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-05-02 10:06:09 +02:00
parent e213585910
commit 4f6293db8f
3 changed files with 13 additions and 16 deletions

View File

@@ -905,9 +905,8 @@ bool RunControl::showPromptToStopDialog(const QString &title,
const QString &text,
const QString &stopButtonText,
const QString &cancelButtonText,
bool *prompt) const
bool *prompt)
{
QTC_ASSERT(isRunning(), return true);
// Show a question message box where user can uncheck this
// question for this class.
Utils::CheckableMessageBox messageBox(Core::ICore::mainWindow());