From 477ababb7350018099b5e83a5fb24a7cfe5b9a18 Mon Sep 17 00:00:00 2001 From: eilers Date: Mon, 13 Jan 2003 14:55:17 +0000 Subject: Oops.. Bugfix in devel branch.. Merged it to main ! --- (limited to 'core') diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp index 937aaae..1139bd7 100644 --- a/core/pim/addressbook/ablabel.cpp +++ b/core/pim/addressbook/ablabel.cpp @@ -51,7 +51,7 @@ void AbLabel::setContacts( const OContactAccess::List& viewList ) int AbLabel::currentEntry_UID() { - OContact contact = *m_itCurContact; + OContact contact = currentEntry(); if ( contact.isEmpty() ) return 0; @@ -61,7 +61,10 @@ int AbLabel::currentEntry_UID() OContact AbLabel::currentEntry() { - return ( *m_itCurContact ); + if ( ! m_empty ) + return ( *m_itCurContact ); + else + return OContact(); } -- cgit v0.9.0.2