Commit 4442dc4f authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

BUGS:382344

Possible solution for this crash. Needs to be tested in next KStars MacOS Release.
CCMAIL:rlancaste@gmail.com
parent 307dcc67
......@@ -169,6 +169,9 @@ void Mount::setTelescope(ISD::GDInterface *newTelescope)
{
if (newTelescope == currentTelescope)
{
updateTimer.start();
if (enableLimitsCheck->isChecked())
currentTelescope->setAltLimits(minAltLimit->value(), maxAltLimit->value());
syncTelescopeInfo();
return;
}
......@@ -180,7 +183,11 @@ void Mount::setTelescope(ISD::GDInterface *newTelescope)
connect(currentTelescope, SIGNAL(switchUpdated(ISwitchVectorProperty *)), this,
SLOT(updateSwitch(ISwitchVectorProperty *)), Qt::UniqueConnection);
connect(currentTelescope, SIGNAL(newTarget(QString)), this, SIGNAL(newTarget(QString)), Qt::UniqueConnection);
connect(currentTelescope, SIGNAL(Disconnected()), m_BaseView, SLOT(hide()), Qt::UniqueConnection);
connect(currentTelescope, &ISD::Telescope::Disconnected, [this]()
{
updateTimer.stop();
m_BaseView->hide();
});
//Disable this for now since ALL INDI drivers now log their messages to verbose output
//connect(currentTelescope, SIGNAL(messageUpdated(int)), this, SLOT(updateLog(int)), Qt::UniqueConnection);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment