[kmobiletools] KDE/kdepim/kmobiletools/kmobiletools/libkmobiletools

Matthias Lechner matthias at lmme.de
Sat Jun 9 22:39:51 CEST 2007


SVN commit 673308 by lechner:

correcting wrong order: first change value, then emit signal

 M  +1 -0      engine.h  
 M  +1 -1      enginedata.cpp  
 M  +5 -0      enginedata.h  


--- trunk/KDE/kdepim/kmobiletools/kmobiletools/libkmobiletools/engine.h #673307:673308
@@ -243,6 +243,7 @@
          * This has to be reimplemented in each engine.
          */
         virtual void slotSearchPhone() = 0;
+
         virtual void slotAddAddressee(const KABC::Addressee::List&) = 0;
         virtual void slotDelAddressee(const KABC::Addressee::List&) = 0;
         virtual void slotDelSMS(SMS*) = 0;
--- trunk/KDE/kdepim/kmobiletools/kmobiletools/libkmobiletools/enginedata.cpp #673307:673308
@@ -108,8 +108,8 @@
 ContactsList *EngineData::contactsList() const { return d->p_addresseeList; }
 
 void EngineData::setContactsList( ContactsList* cl ) {
+    d->p_addresseeList=cl;
     emit phoneBookChanged();
-    d->p_addresseeList=cl;
 }
 
 void EngineData::setPhoneConnected( bool b ) {
--- trunk/KDE/kdepim/kmobiletools/kmobiletools/libkmobiletools/enginedata.h #673307:673308
@@ -33,6 +33,11 @@
 namespace KMobileTools {
     class ContactsList;
     class Engine;
+
+    /**
+    * @author Matthias Lechner
+    * @author Marco Gulino
+    */
     class KMOBILETOOLS_EXPORT EngineData : public QObject
     {
         Q_OBJECT


More information about the kmobiletools mailing list