Commit f45f6996 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 150410 - configure filter rules: suggest mail field as-you-type

FIXED-IN: 4.9.2
BUG: 150410
parent dd17578d
......@@ -112,6 +112,9 @@ void SearchRuleWidget::setHeadersOnly( bool headersOnly )
mRuleField->clear();
mRuleField->addItems( mFilterFieldList );
KCompletion *comp = mRuleField->completionObject();
comp->clear();
comp->insertItems(mFilterFieldList);
mRuleField->setMaxCount( mRuleField->count() );
mRuleField->adjustSize();
......@@ -138,6 +141,11 @@ void SearchRuleWidget::initWidget()
mRuleField->setTrapReturnKey(true);
mRuleField->addItems( mFilterFieldList );
KCompletion *comp = mRuleField->completionObject();
comp->setIgnoreCase(true);
comp->insertItems(mFilterFieldList);
comp->setCompletionMode(KGlobalSettings::CompletionAuto);
// don't show sliders when popping up this menu
mRuleField->setMaxCount( mRuleField->count() );
mRuleField->adjustSize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment