Browse Source

Add mouse area to prevent clickthroughs

CURA-6283
Jaime van Kessel 5 years ago
parent
commit
9bc89534bf
1 changed files with 7 additions and 0 deletions
  1. 7 0
      resources/qml/ObjectSelector.qml

+ 7 - 0
resources/qml/ObjectSelector.qml

@@ -13,6 +13,13 @@ Item
     width: UM.Theme.getSize("objects_menu_size").width
     property bool opened: UM.Preferences.getValue("cura/show_list_of_objects")
 
+    // Eat up all the mouse events (we don't want the scene to react or have the scene context menu showing up)
+    MouseArea
+    {
+        anchors.fill: parent
+        acceptedButtons: Qt.AllButtons
+    }
+
     Button
     {
         id: openCloseButton