OSDN Git Service

CODA: CODA responds to the Device Removed event
authorPawel Polanski <pawel.3.polanski@nokia.com>
Wed, 6 Apr 2011 11:20:43 +0000 (13:20 +0200)
committerPawel Polanski <pawel.3.polanski@nokia.com>
Wed, 6 Apr 2011 11:42:48 +0000 (13:42 +0200)
src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp

index c3d332a..931a0d4 100644 (file)
@@ -322,11 +322,13 @@ void S60DeployStep::stop()
 
 void S60DeployStep::setupConnections()
 {
-    if (m_channel == S60DeployConfiguration::CommunicationTrkSerialConnection) {
+    if (m_channel == S60DeployConfiguration::CommunicationTrkSerialConnection
+            || m_channel == S60DeployConfiguration::CommunicationCodaSerialConnection)
         connect(SymbianUtils::SymbianDeviceManager::instance(), SIGNAL(deviceRemoved(SymbianUtils::SymbianDevice)),
                 this, SLOT(deviceRemoved(SymbianUtils::SymbianDevice)));
-        connect(m_launcher, SIGNAL(finished()), this, SLOT(launcherFinished()));
 
+    if (m_channel == S60DeployConfiguration::CommunicationTrkSerialConnection) {
+        connect(m_launcher, SIGNAL(finished()), this, SLOT(launcherFinished()));
         connect(m_launcher, SIGNAL(canNotConnect(QString)), this, SLOT(connectFailed(QString)));
         connect(m_launcher, SIGNAL(copyingStarted(QString)), this, SLOT(printCopyingNotice(QString)));
         connect(m_launcher, SIGNAL(canNotCreateFile(QString,QString)), this, SLOT(createFileFailed(QString,QString)));