diff options
| author | Morteza Jamshidi <[email protected]> | 2025-08-26 09:45:04 +0200 |
|---|---|---|
| committer | Morteza Jamshidi <[email protected]> | 2025-09-08 14:50:11 +0000 |
| commit | 3f853f79a6f349ff47dd29a1be924007042ef8d5 (patch) | |
| tree | d2f28bfc9425d38f77b313bb63315329f8514924 /src/widgets/dialogs/qdialog.cpp | |
| parent | 835c0d9117109dc1c2909756d51213fae1eae857 (diff) | |
QDialog: Add missing attribute set for explicit hide and show
Due to setVisible function being overrided in the QDialog and after
this commit 79be5fa98663ca6b7e905ecb08950f17ccc06e98, the logic for
setting WA_WState_ExplicitShowHide attribute was never called.
It seems like that's the only logic missing from QWidget::setVisible
function so instead of adding the logic here, we call the base
function.
Fixes: QTBUG-139291
Change-Id: I287b4daca3cd682a20aeb8bf4b5ada7eeab2ab19
Pick-to: 6.10 6.9 6.8
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/widgets/dialogs/qdialog.cpp')
| -rw-r--r-- | src/widgets/dialogs/qdialog.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/widgets/dialogs/qdialog.cpp b/src/widgets/dialogs/qdialog.cpp index ff3e672eeed..90df7bf5453 100644 --- a/src/widgets/dialogs/qdialog.cpp +++ b/src/widgets/dialogs/qdialog.cpp @@ -749,12 +749,7 @@ void QDialog::closeEvent(QCloseEvent *e) void QDialog::setVisible(bool visible) { - Q_D(QDialog); - - if (testAttribute(Qt::WA_WState_ExplicitShowHide) && testAttribute(Qt::WA_WState_Hidden) != visible) - return; - - d->setVisible(visible); + QWidget::setVisible(visible); } void QDialogPrivate::setVisible(bool visible) |
