From d351458b109d964d577edb016b9cb538fdce8e5d Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 27 Dec 2022 12:11:21 +0100 Subject: [PATCH] Make identifier unique and call the correct one. Wouldn't start for me without (from source, on Windows). part of CURA-9522 --- resources/qml/Menus/MaterialBrandSubMenu.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/Menus/MaterialBrandSubMenu.qml b/resources/qml/Menus/MaterialBrandSubMenu.qml index e2c76518f7..c2cbd7f911 100644 --- a/resources/qml/Menus/MaterialBrandSubMenu.qml +++ b/resources/qml/Menus/MaterialBrandSubMenu.qml @@ -30,7 +30,7 @@ Popup // needed for the `mapToItem` function to work; apparently a Popup is not an Item Item { - id: materialBrandSubMenu + id: materialBrandSubMenuItem anchors.fill: parent } @@ -47,7 +47,7 @@ Popup materialBrandSubMenu.width = implicitWidth; materialBrandSubMenu.height = implicitHeight; - const globalPosition = materialBrandSubMenu.mapToItem(null, 0, 0); + const globalPosition = materialBrandSubMenuItem.mapToItem(null, 0, 0); if (globalPosition.y > mainWindow.height - materialBrandSubMenu.height) {