summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/TemplateComboBox.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TemplateComboBox.qml b/mobile-widgets/qml/TemplateComboBox.qml
index bd2a81d63..e51c7d060 100644
--- a/mobile-widgets/qml/TemplateComboBox.qml
+++ b/mobile-widgets/qml/TemplateComboBox.qml
@@ -57,6 +57,15 @@ ComboBox {
font: cb.font
color: subsurfaceTheme.textColor
verticalAlignment: Text.AlignVCenter
+ onPressed: {
+ if (readOnly) {
+ if (cb.popup.opened) {
+ cb.popup.close()
+ } else {
+ cb.popup.open()
+ }
+ }
+ }
}
background: Rectangle {