author | eilers <eilers> | 2003-01-02 14:26:06 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-01-02 14:26:06 (UTC) |
commit | 12e9ed4ac80ac7fa042059b48d7447db0e59a86c (patch) (side-by-side diff) | |
tree | 3165bc8422ca5560a30de2a7bf54c0a319516ce7 /core/pim/addressbook/abview.cpp | |
parent | 85a6acb57bb6a0b7c5340f3f3107c1b39884c023 (diff) | |
download | opie-12e9ed4ac80ac7fa042059b48d7447db0e59a86c.zip opie-12e9ed4ac80ac7fa042059b48d7447db0e59a86c.tar.gz opie-12e9ed4ac80ac7fa042059b48d7447db0e59a86c.tar.bz2 |
Letterpicker now works for lowercase names..
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 @@ -155,2 +155,3 @@ void AbView::load() if ( m_inPersonal ) + // VCard Backend does not sort.. m_list = m_contactdb->allRecords(); @@ -227,4 +228,10 @@ void AbView::setShowByLetter( char c ) }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(); |