Skip to content

Commit

Permalink
fix: Fix QtQuick mdi example when trying to close widget
Browse files Browse the repository at this point in the history
Fixes #488
  • Loading branch information
iamsergio committed Apr 8, 2024
1 parent 8da6426 commit 314d90d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/qtquick/mdi/Guest1.qml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ Guest {
}

onClicked: {

if (another.dockWidget.visible) {
another.dockWidget.close();
if (another.isOpen) {
another.close();
} else {
another.dockWidget.show();
another.show();
}
}
}
Expand Down

0 comments on commit 314d90d

Please sign in to comment.