summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-11 10:09:39 (UTC)
committer zautrix <zautrix>2004-10-11 10:09:39 (UTC)
commitd3759373291c08d2cde93d85a76d190dc8a33830 (patch) (side-by-side diff)
treeccc808fbdcd2ef0f38747fa459b2c605948f49a5
parent504f6b2a8732d980a88234cdef0a80c201b9c4da (diff)
downloadkdepimpi-d3759373291c08d2cde93d85a76d190dc8a33830.zip
kdepimpi-d3759373291c08d2cde93d85a76d190dc8a33830.tar.gz
kdepimpi-d3759373291c08d2cde93d85a76d190dc8a33830.tar.bz2
crash fix in saveAB
Diffstat (more/less context) (show 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
@@ -634,5 +634,5 @@ bool AddressBook::saveAB()
if ( (*it)->readOnly() )
- qDebug("readonly." );
+ qDebug("resource is readonly." );
if ( (*it)->isOpen() )
- qDebug("open" );
+ qDebug("resource is open" );
@@ -649,2 +649,3 @@ bool AddressBook::saveAB()
if ( ticket->resource() ) {
+ QString name = ticket->resource()->resourceName();
if ( ! ticket->resource()->save( ticket ) )
@@ -652,3 +653,3 @@ bool AddressBook::saveAB()
else
- qDebug("StdAddressBook::saved '%s'", ticket->resource()->resourceName().latin1() );
+ qDebug("StdAddressBook::resource saved '%s'", name.latin1() );