Diffstat (limited to 'core/pim/addressbook/ablabel.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/ablabel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp index 6d8de91..1914f71 100644 --- a/core/pim/addressbook/ablabel.cpp +++ b/core/pim/addressbook/ablabel.cpp | |||
@@ -70,12 +70,15 @@ OContact AbLabel::currentEntry() | |||
70 | 70 | ||
71 | bool AbLabel::selectContact( int UID ) | 71 | bool AbLabel::selectContact( int UID ) |
72 | { | 72 | { |
73 | 73 | ||
74 | for ( m_itCurContact = m_viewList.begin(); m_itCurContact != m_viewList.end(); ++m_itCurContact){ | 74 | for ( int r = 0; r < m_viewList.count(); ++r ) { |
75 | if ( (*m_itCurContact).uid() == UID ) | 75 | if ( m_viewList.uidAt( r ) == UID ){ |
76 | m_itCurContact.setCurrent( r ); | ||
76 | break; | 77 | break; |
78 | } | ||
77 | } | 79 | } |
80 | |||
78 | sync(); | 81 | sync(); |
79 | 82 | ||
80 | return true; | 83 | return true; |
81 | } | 84 | } |