Make identifier unique and call the correct one.

Wouldn't start for me without (from source, on Windows).

part of CURA-9522
This commit is contained in:
Remco Burema 2022-12-27 12:11:21 +01:00
parent 634288a37c
commit d351458b10

View File

@ -30,7 +30,7 @@ Popup
// needed for the `mapToItem` function to work; apparently a Popup is not an Item // needed for the `mapToItem` function to work; apparently a Popup is not an Item
Item Item
{ {
id: materialBrandSubMenu id: materialBrandSubMenuItem
anchors.fill: parent anchors.fill: parent
} }
@ -47,7 +47,7 @@ Popup
materialBrandSubMenu.width = implicitWidth; materialBrandSubMenu.width = implicitWidth;
materialBrandSubMenu.height = implicitHeight; materialBrandSubMenu.height = implicitHeight;
const globalPosition = materialBrandSubMenu.mapToItem(null, 0, 0); const globalPosition = materialBrandSubMenuItem.mapToItem(null, 0, 0);
if (globalPosition.y > mainWindow.height - materialBrandSubMenu.height) if (globalPosition.y > mainWindow.height - materialBrandSubMenu.height)
{ {