summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abview.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abview.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp
index 161b163..93e57ca 100644
--- a/core/pim/addressbook/abview.cpp
+++ b/core/pim/addressbook/abview.cpp
@@ -153,6 +153,7 @@ void AbView::load()
emit signalClearLetterPicker();
if ( m_inPersonal )
+ // VCard Backend does not sort..
m_list = m_contactdb->allRecords();
else{
m_list = m_contactdb->sorted( true, 0, 0, 0 );
@@ -225,8 +226,14 @@ void AbView::setShowByLetter( char c )
load();
return;
}else{
+ // If the current Backend is unable to solve the query, we will
+ // ignore the request ..
+ if ( ! m_contactdb->hasQuerySettings( OContactAccess::WildCards | OContactAccess::IgnoreCase ) ){
+ return;
+ }
+
query.setLastName( QString("%1*").arg(c) );
- m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards );
+ m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards | OContactAccess::IgnoreCase );
clearForCategory();
m_curr_Contact = 0;
}