author | eilers <eilers> | 2002-11-30 18:13:34 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-11-30 18:13:34 (UTC) |
commit | 6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a (patch) (unidiff) | |
tree | a873946a9b52edaab8f374918c7e0b468c2353b3 /core/pim/addressbook/ablabel.cpp | |
parent | fe672fd88ead7a987d66f03439eb860e67aeaca6 (diff) | |
download | opie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.zip opie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.tar.gz opie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.tar.bz2 |
Fixed a lot of usability stuff .. Some minor bugs were fixed, too ..
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, 6 insertions, 1 deletions
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp index 5b40dc1..937aaae 100644 --- a/core/pim/addressbook/ablabel.cpp +++ b/core/pim/addressbook/ablabel.cpp | |||
@@ -51,7 +51,12 @@ void AbLabel::setContacts( const OContactAccess::List& viewList ) | |||
51 | 51 | ||
52 | int AbLabel::currentEntry_UID() | 52 | int AbLabel::currentEntry_UID() |
53 | { | 53 | { |
54 | return ( (*m_itCurContact).uid() ); | 54 | OContact contact = *m_itCurContact; |
55 | |||
56 | if ( contact.isEmpty() ) | ||
57 | return 0; | ||
58 | else | ||
59 | return ( contact.uid() ); | ||
55 | } | 60 | } |
56 | 61 | ||
57 | OContact AbLabel::currentEntry() | 62 | OContact AbLabel::currentEntry() |