[education/kstars] kstars/ekos: Shut the profile down instead of indefinitely waiting when checkINDITimeout fires.

Jasem Mutlaq <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 91af8f365b91b4ab7f2808f7262bef80206509ba by Jasem Mutlaq.
Committed on 22/07/2026 at 19:04.
Pushed by mutlaqja into branch 'master'.

Shut the profile down instead of indefinitely waiting when checkINDITimeout fires.

M  +9    -0    kstars/ekos/manager.cpp

https://invent.kde.org/education/kstars/-/commit/91af8f365b91b4ab7f2808f7262bef80206509ba

diff --git a/kstars/ekos/manager.cpp b/kstars/ekos/manager.cpp
index c017a483be..a53728b318 100644
--- a/kstars/ekos/manager.cpp
+++ b/kstars/ekos/manager.cpp
@@ -263,6 +263,7 @@ Manager::Manager(QWidget * parent) : QDialog(parent), m_networkManager(this)
         {
             processINDIB->setIcon(QIcon::fromTheme("media-playback-start"));
             processINDIB->setToolTip(i18n("Start"));
+            processINDIB->setEnabled(true);
         }
         else
         {
@@ -1670,6 +1671,11 @@ void Manager::checkINDITimeout()
 
         appendLogText(message);
         KSNotification::event(QLatin1String("IndiServerMessage"), message, KSNotification::General, KSNotification::Warn);
+
+        m_ekosStatus = Ekos::Error;
+        Q_EMIT ekosStatusChanged(m_ekosStatus);
+        m_indiStatus = Ekos::Error;
+        Q_EMIT indiStatusChanged(m_indiStatus);
         return;
     }
 
@@ -1751,6 +1757,9 @@ void Manager::checkINDITimeout()
     }
 
     m_ekosStatus = Ekos::Error;
+    Q_EMIT ekosStatusChanged(m_ekosStatus);
+    m_indiStatus = Ekos::Error;
+    Q_EMIT indiStatusChanged(m_indiStatus);
 }
 
 bool Manager::isINDIReady()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.