[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] libkdepim: Simplify condition.
From: Till Adam <adam () kde ! org>
Date: 2012-10-14 11:42:30
Message-ID: 20121014114230.ABEA5A6078 () git ! kde ! org
[Download RAW message or body]
Git commit fd7462bef039be405f46374ec4d496401c735030 by Till Adam.
Committed on 14/10/2012 at 12:15.
Pushed by tilladam into branch 'master'.
Simplify condition.
M +1 -2 libkdepim/addresseelineedit.cpp
http://commits.kde.org/kdepim/fd7462bef039be405f46374ec4d496401c735030
diff --git a/libkdepim/addresseelineedit.cpp b/libkdepim/addresseelineedit.cpp
index f818a29..873c74d 100644
--- a/libkdepim/addresseelineedit.cpp
+++ b/libkdepim/addresseelineedit.cpp
@@ -940,8 +940,7 @@ void AddresseeLineEdit::Private::slotAkonadiSearchResult( KJob *job )
}
}
- if ( ( contactJob && contactJob->contacts().size() > 0 ) ||
- ( groupJob && groupJob->contactGroups().size() > 0 ) ) {
+ if ( !items.isEmpty() ) {
const QListWidgetItem *current = q->completionBox()->currentItem();
if ( !current || m_searchString.trimmed() != current->text().trimmed() ) {
doCompletion( m_lastSearchMode );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic