forked from qt-creator/qt-creator
ProjectExplorer: Fix inverted if statement
Change-Id: I94c9d8d5ff335ee53002fdb1ea75ca882e858d71 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1058,7 +1058,7 @@ bool RunControl::showPromptToStopDialog(const QString &title,
|
|||||||
buttonTexts[QMessageBox::Cancel] = cancelButtonText;
|
buttonTexts[QMessageBox::Cancel] = cancelButtonText;
|
||||||
|
|
||||||
std::optional<CheckableMessageBox::Decider> decider
|
std::optional<CheckableMessageBox::Decider> decider
|
||||||
= prompt ? std::nullopt : make_optional(CheckableMessageBox::make_decider(*prompt));
|
= prompt ? make_optional(CheckableMessageBox::make_decider(*prompt)) : std::nullopt;
|
||||||
|
|
||||||
auto selected = CheckableMessageBox::question(Core::ICore::dialogParent(),
|
auto selected = CheckableMessageBox::question(Core::ICore::dialogParent(),
|
||||||
title,
|
title,
|
||||||
|
Reference in New Issue
Block a user