[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kabc
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2004-07-14 15:27:22
Message-ID: 20040714152722.B0E9316AFE () office ! kde ! org
[Download RAW message or body]

CVS commit by tokoe: 

The resource manager deletes the resource, so we have to call him as last
action, otherwise we get a crash.


  M +2 -2      addressbook.cpp   1.75


--- kdelibs/kabc/addressbook.cpp  #1.74:1.75
@@ -725,6 +725,4 @@ bool AddressBook::removeResource( Resour
   resource->setAddressBook( 0 );
 
-  d->mManager->remove( resource );
-
   disconnect( resource, SIGNAL( loadingFinished( Resource* ) ),
               this, SLOT( resourceLoadingFinished( Resource* ) ) );
@@ -737,4 +735,6 @@ bool AddressBook::removeResource( Resour
               this, SLOT( resourceLoadingError( Resource*, const QString& ) ) );
 
+  d->mManager->remove( resource );
+
   return true;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic