Merge pull request #7855 from Techjar/modal-dialog-whatsthis

Qt: Remove "What's this?" button from modal message boxes
This commit is contained in:
Mat M 2019-03-04 19:32:35 -05:00 committed by GitHub
commit f2cbb8b82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())