qtquick: Fix undefined variable error in example

This commit is contained in:
Sergio Martins
2021-04-05 14:35:40 +01:00
parent 0f09ba717f
commit 5a2812ecf3

View File

@@ -40,10 +40,10 @@ KDDW.MainWindow {
z: 10
onClicked: {
if (another.dockWidget.visible) {
another.dockWidget.close();
if (dock4.dockWidget.visible) {
dock4.dockWidget.close();
} else {
another.dockWidget.show();
dock4.dockWidget.show();
}
}
}