Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.cpp | 9 |
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() | |||
153 | emit signalClearLetterPicker(); | 153 | emit signalClearLetterPicker(); |
154 | 154 | ||
155 | if ( m_inPersonal ) | 155 | if ( m_inPersonal ) |
156 | // VCard Backend does not sort.. | ||
156 | m_list = m_contactdb->allRecords(); | 157 | m_list = m_contactdb->allRecords(); |
157 | else{ | 158 | else{ |
158 | m_list = m_contactdb->sorted( true, 0, 0, 0 ); | 159 | m_list = m_contactdb->sorted( true, 0, 0, 0 ); |
@@ -225,8 +226,14 @@ void AbView::setShowByLetter( char c ) | |||
225 | load(); | 226 | load(); |
226 | return; | 227 | return; |
227 | }else{ | 228 | }else{ |
229 | // If the current Backend is unable to solve the query, we will | ||
230 | // ignore the request .. | ||
231 | if ( ! m_contactdb->hasQuerySettings( OContactAccess::WildCards | OContactAccess::IgnoreCase ) ){ | ||
232 | return; | ||
233 | } | ||
234 | |||
228 | query.setLastName( QString("%1*").arg(c) ); | 235 | query.setLastName( QString("%1*").arg(c) ); |
229 | m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards ); | 236 | m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards | OContactAccess::IgnoreCase ); |
230 | clearForCategory(); | 237 | clearForCategory(); |
231 | m_curr_Contact = 0; | 238 | m_curr_Contact = 0; |
232 | } | 239 | } |