forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user