[Kstars-devel] [kstars] kstars/indi: Start the server AFTER the progress bar is created. It used to work the other way around!

Jasem Mutlaq mutlaqja at ikarustech.com
Tue Apr 5 22:16:11 CEST 2011


Git commit 3233dfc86d440dcd92f2b3c826ff44da5c95c574 by Jasem Mutlaq.
Committed on 05/04/2011 at 22:13.
Pushed by mutlaqja into branch 'master'.

Start the server AFTER the progress bar is created. It used to work the other way around!
CCMAIL: kstars-devel at kde.org

M  +1    -0    kstars/indi/indistd.cpp     
M  +8    -7    kstars/indi/telescopewizardprocess.cpp     

http://commits.kde.org/kstars/3233dfc86d440dcd92f2b3c826ff44da5c95c574

diff --git a/kstars/indi/indistd.cpp b/kstars/indi/indistd.cpp
index b8a70c9..aa505d5 100644
--- a/kstars/indi/indistd.cpp
+++ b/kstars/indi/indistd.cpp
@@ -658,6 +658,7 @@ void INDIStdDevice::registerProperty(INDI_P *pp)
         break;
 
     case EQUATORIAL_EOD_COORD:
+    case EQUATORIAL_EOD_COORD_REQUEST:
     case HORIZONTAL_COORD:
         emit newTelescope();
         break;
diff --git a/kstars/indi/telescopewizardprocess.cpp b/kstars/indi/telescopewizardprocess.cpp
index e98402a..5b4aac9 100644
--- a/kstars/indi/telescopewizardprocess.cpp
+++ b/kstars/indi/telescopewizardprocess.cpp
@@ -254,13 +254,6 @@ void telescopeWizardProcess::establishLink()
     indidriver->ui->localR->setChecked(true);
     // Connect new device discovered with process ports
     connect (indidriver, SIGNAL(newTelescope()), this, SLOT(processPort()), Qt::QueuedConnection);
-    // Run it
-    indidriver->processLocalTree(IDevice::DEV_START);
-    
-//    kDebug() << "Processing device tree for " << ui->telescopeCombo->currentText();
-
-    if (!indidriver->isDeviceRunning(ui->telescopeCombo->currentText()))
-        return;
 
     currentPort = -1;
 
@@ -287,6 +280,14 @@ void telescopeWizardProcess::establishLink()
     progressScan->progressBar()->setMaximum(portList.count());
     progressScan->show();
 
+    // Run it
+    indidriver->processLocalTree(IDevice::DEV_START);
+
+//    kDebug() << "Processing device tree for " << ui->telescopeCombo->currentText();
+
+    if (!indidriver->isDeviceRunning(ui->telescopeCombo->currentText()))
+        return;
+
 }
 
 void telescopeWizardProcess::processPort()


More information about the Kstars-devel mailing list