diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index bd473776ef1..6d628ca2987 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -2463,7 +2463,7 @@ void WatchModel::clearWatches() return; const QDialogButtonBox::StandardButton ret = CheckableMessageBox::doNotAskAgainQuestion( - ICore::mainWindow(), tr("Remove All Expression Evaluators"), + ICore::dialogParent(), tr("Remove All Expression Evaluators"), tr("Are you sure you want to remove all expression evaluators?"), ICore::settings(), "RemoveAllWatchers"); if (ret != QDialogButtonBox::Yes)