summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-04 13:50:11 +0200
committerMontel Laurent <[email protected]>2017-08-04 13:50:11 +0200
commit4b5f0ce688da7ffb3c4f3b2ea768ab1d74fd130b (patch)
tree91e2be0ee87c9b647ae309d990c46a982b379a4b
parentcec6372370e633133707f82cb5263522029d48a5 (diff)
Don't init() if not necessary
-rw-r--r--src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp b/src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp
index bd53d79..a367352 100644
--- a/src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp
+++ b/src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp
@@ -667,8 +667,8 @@ void AddresseeLineEditPrivate::slotLDAPSearchData(const KLDAP::LdapResult::List
void AddresseeLineEditPrivate::slotEditCompletionOrder()
{
- init(); // for AddresseeLineEditStatic::self()->ldapSearch
if (mUseCompletion) {
+ init(); // for AddresseeLineEditStatic::self()->ldapSearch
QPointer<CompletionOrderEditor> dlg = new CompletionOrderEditor(AddresseeLineEditManager::self()->ldapSearch(), nullptr);
if (dlg->exec()) {
AddresseeLineEditManager::self()->updateCompletionOrder();