OSDN Git Service

CODA: Fixed timeout for info button
authorPawel Polanski <pawel.3.polanski@nokia.com>
Wed, 9 Mar 2011 10:01:20 +0000 (11:01 +0100)
committerPawel Polanski <pawel.3.polanski@nokia.com>
Wed, 9 Mar 2011 11:06:40 +0000 (12:06 +0100)
src/plugins/qt4projectmanager/qt-s60/s60deployconfigurationwidget.cpp

index a09beb8..d92988d 100644 (file)
@@ -589,19 +589,18 @@ void S60DeployConfigurationWidget::codaEvent(const Coda::CodaEvent &event)
 
 void S60DeployConfigurationWidget::getQtVersionCommandResult(const Coda::CodaCommandResult &result)
 {
-    codaIncreaseProgress();
     m_deviceInfo.clear();
     if (result.type == Coda::CodaCommandResult::FailReply) {
         setDeviceInfoLabel(tr("No device information available"), true);
         SymbianUtils::SymbianDeviceManager::instance()->releaseCodaDevice(m_codaInfoDevice);
         m_deviceInfoButton->setEnabled(true);
+        m_codaTimeout->stop();
         return;
     } else if (result.type == Coda::CodaCommandResult::CommandErrorReply){
         startTable(m_deviceInfo);
         QTextStream str(&m_deviceInfo);
         addErrorToTable(str, tr("Qt version: "), tr("Not installed on device"));
         finishTable(m_deviceInfo);
-        setDeviceInfoLabel(m_deviceInfo, false);
     } else {
         if (result.values.count()) {
             QHash<QString, QVariant> obj = result.values[0].toVariant().toHash();
@@ -663,6 +662,7 @@ void S60DeployConfigurationWidget::getQtVersionCommandResult(const Coda::CodaCom
             finishTable(m_deviceInfo);
         }
     }
+    codaIncreaseProgress();
     m_codaInfoDevice->sendSymbianOsDataGetRomInfoCommand(Coda::CodaCallback(this, &S60DeployConfigurationWidget::getRomInfoResult));
 }