summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2010-08-20 12:23:41 +0000
committerdeva <deva>2010-08-20 12:23:41 +0000
commit691529884f4adb4753f14d8a1e0b0743c5cf665a (patch)
tree27e596776511f8b877bec9237894d2b5094206b9 /client/widgets
parentc319d824b5aaba55010e4b966593714ee3c5b1c6 (diff)
Don't show drop-down list when clicked, if disabled.
Diffstat (limited to 'client/widgets')
-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 5d5543f..ec260ea 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -199,7 +199,7 @@ bool ComboBox::eventFilter(QObject *obj, QEvent *event)
{
if(combotype == SELECT) {
if(event->type() == QEvent::MouseButtonRelease) {
- combobox->showPopup();
+ if(enabled()) combobox->showPopup();
}
}