summaryrefslogtreecommitdiffabout
path: root/kabc/addressbook.cpp
Side-by-side diff
Diffstat (limited to 'kabc/addressbook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/addressbook.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp
index ad0f702..19c26eb 100644
--- a/kabc/addressbook.cpp
+++ b/kabc/addressbook.cpp
@@ -633,7 +633,7 @@ bool AddressBook::saveAB()
qDebug("SaveAB::checking resource..." );
if ( (*it)->readOnly() )
- qDebug("readonly." );
+ qDebug("resource is readonly." );
if ( (*it)->isOpen() )
- qDebug("open" );
+ qDebug("resource is open" );
if ( !(*it)->readOnly() && (*it)->isOpen() ) {
@@ -648,8 +648,9 @@ bool AddressBook::saveAB()
//if ( !save( ticket ) )
if ( ticket->resource() ) {
+ QString name = ticket->resource()->resourceName();
if ( ! ticket->resource()->save( ticket ) )
ok = false;
else
- qDebug("StdAddressBook::saved '%s'", ticket->resource()->resourceName().latin1() );
+ qDebug("StdAddressBook::resource saved '%s'", name.latin1() );
} else