Add mouse area to prevent clickthroughs

CURA-6283
This commit is contained in:
Jaime van Kessel 2019-05-24 12:53:34 +02:00
parent bd39a9c591
commit 9bc89534bf

View file

@ -13,6 +13,13 @@ Item
width: UM.Theme.getSize("objects_menu_size").width width: UM.Theme.getSize("objects_menu_size").width
property bool opened: UM.Preferences.getValue("cura/show_list_of_objects") 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 Button
{ {
id: openCloseButton id: openCloseButton