summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2011-03-10 15:03:17 +0000
committerdeva <deva>2011-03-10 15:03:17 +0000
commit56deeeb81d9ed9e535cb0f9a74f355eaed6281ec (patch)
tree4c450a8f3974166d2cc7b124ed25610f439b68c1
parent590720ff213e7863756f11590cf4b1e48e07d3cc (diff)
Make combobox activate completer upon item adding (in edit mode).
-rw-r--r--client/widgets/combobox.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc
index 5eb9b9e..c06e145 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -246,6 +246,9 @@ void ComboBox::addItem(QString item)
{
ignoreChangeEvents = true;
combobox->addItem(item, item);
+ if(combotype == EDIT) {
+ combobox->completer()->complete();
+ }
ignoreChangeEvents = false;
}