Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index beb953a..8229212 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -897,24 +897,25 @@ void AddressbookWindow::slotSetLetter( char c ) { | |||
897 | 897 | ||
898 | abList->setShowByLetter( c ); | 898 | abList->setShowByLetter( c ); |
899 | 899 | ||
900 | } | 900 | } |
901 | 901 | ||
902 | void AddressbookWindow::populateCategories() | 902 | void AddressbookWindow::populateCategories() |
903 | { | 903 | { |
904 | catMenu->clear(); | 904 | catMenu->clear(); |
905 | 905 | ||
906 | int id, | 906 | int id, |
907 | rememberId; | 907 | rememberId; |
908 | id = 1; | 908 | id = 1; |
909 | rememberId = 0; | ||
909 | catMenu->insertItem( tr( "All" ), id++ ); | 910 | catMenu->insertItem( tr( "All" ), id++ ); |
910 | QStringList categories = abList->categories(); | 911 | QStringList categories = abList->categories(); |
911 | categories.append( tr( "Unfiled" ) ); | 912 | categories.append( tr( "Unfiled" ) ); |
912 | for ( QStringList::Iterator it = categories.begin(); | 913 | for ( QStringList::Iterator it = categories.begin(); |
913 | it != categories.end(); ++it ) { | 914 | it != categories.end(); ++it ) { |
914 | catMenu->insertItem( *it, id ); | 915 | catMenu->insertItem( *it, id ); |
915 | if ( *it == abList->showCategory() ) | 916 | if ( *it == abList->showCategory() ) |
916 | rememberId = id; | 917 | rememberId = id; |
917 | ++id; | 918 | ++id; |
918 | } | 919 | } |
919 | if ( abList->showCategory().isEmpty() ) | 920 | if ( abList->showCategory().isEmpty() ) |
920 | slotSetCategory( 1 ); | 921 | slotSetCategory( 1 ); |