[kmobiletools] KDE/kdepim/kmobiletools/kmobiletools

Matthias Lechner matthias at lmme.de
Sun Jun 10 14:52:10 CEST 2007


SVN commit 673520 by lechner:

prevent wizard crashing when no devices were found


 M  +2 -1      engines/at_engine/wizard/at_devicesfoundpage.cpp  
 M  +1 -1      libkmobiletools/engine.h  
 M  +3 -3      mainpart/devicehome.cpp  


--- trunk/KDE/kdepim/kmobiletools/kmobiletools/engines/at_engine/wizard/at_devicesfoundpage.cpp #673519:673520
@@ -35,6 +35,8 @@
 AT_DevicesFoundPage::AT_DevicesFoundPage(QWidget *parent)
  : DevicesFoundPage(parent)
 {
+    enginedata=0;
+
     b_details=new QLabel();
     details()->addWidget(b_details);
     details()->setCurrentWidget(b_details);
@@ -80,7 +82,6 @@
 
 void AT_DevicesFoundPage::slotDetails(QListWidgetItem *item) {
     kDebug() << k_funcinfo << endl;
-    enginedata=0;
     if(!item) return;
     AT_ScanProgressPage *scanpage=(AT_ScanProgressPage *) wizard()->page(wizard()->property("scanprogress_id").toInt() );
 
--- trunk/KDE/kdepim/kmobiletools/kmobiletools/libkmobiletools/engine.h #673519:673520
@@ -299,7 +299,7 @@
         void jobEnqueued( KMobileTools::Job * job );
 
         /**
-         * This signal is emitted when KMobileTools finish a task.
+         * This signal is emitted when KMobileTools finishs a task.
          */
         void jobFinished( KMobileTools::Job::JobType );
 
--- trunk/KDE/kdepim/kmobiletools/kmobiletools/mainpart/devicehome.cpp #673519:673520
@@ -323,9 +323,9 @@
     connect(engine, SIGNAL(phoneBookChanged() ), SLOT(updatePB()) );
     //connect(engine, SIGNAL(phoneBookChanged(int, const ContactsList& ) ), SLOT(updatePB(int, const ContactsList& ) ) );
     connect(engine, SIGNAL(smsFoldersAdded() ), SLOT(addSMSFolders()) );
-    connect(engine, SIGNAL(smsAdded( const QByteArray& )), SLOT(smsAdded( const QByteArray&) ) );
-    connect(engine, SIGNAL(smsDeleted( const QByteArray& )), SLOT(smsRemoved(const QByteArray&) ) );
-    connect(engine, SIGNAL(smsModified( const QByteArray& )), SLOT(smsModified( const QByteArray& )) );
+    connect(engine->constEngineData(), SIGNAL(smsAdded( const QByteArray& )), SLOT(smsAdded( const QByteArray&) ) );
+    connect(engine->constEngineData(), SIGNAL(smsDeleted( const QByteArray& )), SLOT(smsRemoved(const QByteArray&) ) );
+    connect(engine->constEngineData(), SIGNAL(smsModified( const QByteArray& )), SLOT(smsModified( const QByteArray& )) );
     connect(engine->constEngineData(), SIGNAL(ringing( bool )), this, SLOT(slotRing( bool ) ) );
     connect(engine, SIGNAL(fullPhonebook()), this, SLOT(fullPhonebook()) );
     connect(p_smsPart, SIGNAL(getSMSList() ), engine, SLOT( slotFetchSMS() ) );


More information about the kmobiletools mailing list