Skip to content
Permalink
Browse files
Merge pull request #7855 from Techjar/modal-dialog-whatsthis
Qt: Remove "What's this?" button from modal message boxes
  • Loading branch information
lioncash committed Mar 5, 2019
2 parents 147f7ca + 86d036e commit f2cbb8b
Showing 1 changed file with 1 addition and 0 deletions.
@@ -9,6 +9,7 @@
ModalMessageBox::ModalMessageBox(QWidget* parent) : QMessageBox(parent)
{
setWindowModality(Qt::WindowModal);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);

// No parent is still preferable to showing a hidden parent here.
if (parent != nullptr && !parent->isVisible())

0 comments on commit f2cbb8b

Please sign in to comment.