From 1e3a2a96d3eca9ff10a5e7c222bddc6ba018b41f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 24 May 2013 12:00:33 +0200 Subject: Only open combobox on click if target object is the combobox lineedit. --- client/widgets/combobox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index 53a80e2..b600c0f 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -220,7 +220,7 @@ bool ComboBox::eventFilter(QObject *obj, QEvent *event) { if(ignoreChangeEvents == true) return Widget::eventFilter(obj, event); - if(combotype == SELECT) { + if(combotype == SELECT && obj == combobox->lineEdit()) { if(event->type() == QEvent::MouseButtonRelease) { if(enabled()) combobox->showPopup(); } -- cgit v1.2.3