summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-24 12:00:33 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-24 12:00:33 +0200
commit1e3a2a96d3eca9ff10a5e7c222bddc6ba018b41f (patch)
treed836463e4461773b6fe5f75240593c00d0f0a59d
parentc6e2322e5357736871bd6d5c1f87222fe9dac738 (diff)
Only open combobox on click if target object is the combobox lineedit.
-rw-r--r--client/widgets/combobox.cc2
1 files changed, 1 insertions, 1 deletions
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();
}