From ac25c5a0f8a04f091299f2e054e8374a5e93f0df Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Mon, 23 Nov 2020 21:47:06 +0100 Subject: [PATCH] Remove invalid attribute setting for ContextMenus --- qml/components/ChoiceSetting.qml | 1 - qml/components/IntegerSetting.qml | 1 - qml/components/MediaColSetting.qml | 1 - qml/components/RangeSetting.qml | 2 -- 4 files changed, 5 deletions(-) diff --git a/qml/components/ChoiceSetting.qml b/qml/components/ChoiceSetting.qml index c08264f..7f1c291 100644 --- a/qml/components/ChoiceSetting.qml +++ b/qml/components/ChoiceSetting.qml @@ -29,7 +29,6 @@ Setting { } menu: ContextMenu { - enabled: valid && limited_choices.length <= num_large_choices Repeater { model: limited_choices MenuItem { diff --git a/qml/components/IntegerSetting.qml b/qml/components/IntegerSetting.qml index b48db98..c45df93 100644 --- a/qml/components/IntegerSetting.qml +++ b/qml/components/IntegerSetting.qml @@ -8,7 +8,6 @@ Setting { displayValue: choice ? choice : default_choice menu: ContextMenu { - enabled: valid MenuItem { Slider { diff --git a/qml/components/MediaColSetting.qml b/qml/components/MediaColSetting.qml index 5c16d04..c2e09ef 100644 --- a/qml/components/MediaColSetting.qml +++ b/qml/components/MediaColSetting.qml @@ -21,7 +21,6 @@ Setting { menu: ContextMenu { id: menu - enabled: true MenuItem { text: qsTr("true") onClicked: diff --git a/qml/components/RangeSetting.qml b/qml/components/RangeSetting.qml index 1e562ff..ed27b63 100644 --- a/qml/components/RangeSetting.qml +++ b/qml/components/RangeSetting.qml @@ -35,8 +35,6 @@ Setting { displayValue: choice_high==0 ? qsTr("all") : ""+choice_low+" - "+choice_high menu: ContextMenu { - enabled: valid - MenuItem { Slider {