From 691529884f4adb4753f14d8a1e0b0743c5cf665a Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 20 Aug 2010 12:23:41 +0000 Subject: Don't show drop-down list when clicked, if disabled. --- 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 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(); } } -- cgit v1.2.3