From 6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a Mon Sep 17 00:00:00 2001 From: eilers Date: Sat, 30 Nov 2002 18:13:34 +0000 Subject: Fixed a lot of usability stuff .. Some minor bugs were fixed, too .. --- (limited to 'core/pim/addressbook/ablabel.cpp') 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 ) int AbLabel::currentEntry_UID() { - return ( (*m_itCurContact).uid() ); + OContact contact = *m_itCurContact; + + if ( contact.isEmpty() ) + return 0; + else + return ( contact.uid() ); } OContact AbLabel::currentEntry() -- cgit v0.9.0.2