From aaf7fba0c3bdfafff659cd8ac9adbdf17586b420 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Mon, 4 Sep 2023 16:44:47 +0200 Subject: [PATCH] QmlDesigner: Fix flyout workspace selection Task-number: QDS-10494 Change-Id: I2ebd65c744c085c55325b5f73f4e0da45ef5d04c Reviewed-by: Brook Cronin Reviewed-by: Qt CI Patch Build Bot Reviewed-by: Thomas Hartmann --- share/qtcreator/qmldesigner/toolbar/Main.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/share/qtcreator/qmldesigner/toolbar/Main.qml b/share/qtcreator/qmldesigner/toolbar/Main.qml index 816e849143d..1ddedd08b48 100644 --- a/share/qtcreator/qmldesigner/toolbar/Main.qml +++ b/share/qtcreator/qmldesigner/toolbar/Main.qml @@ -400,6 +400,7 @@ Rectangle { currentIndex: workspacesFlyout.indexOfValue(backend.currentWorkspace) onCompressedActivated: backend.setCurrentWorkspace(workspacesFlyout.currentValue) + onCountChanged: workspacesFlyout.currentIndex = workspacesFlyout.indexOfValue(backend.currentWorkspace) } } }