Commit f5c7c497 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Delete mount control on destroy. Correctly update park initial state

parent 964727e1
......@@ -162,6 +162,7 @@ Mount::Mount()
Mount::~Mount()
{
delete(m_BaseView);
}
void Mount::setTelescope(ISD::GDInterface *newTelescope)
......@@ -255,8 +256,8 @@ void Mount::syncTelescopeInfo()
connect(unparkB, SIGNAL(clicked()), currentTelescope, SLOT(UnPark()), Qt::UniqueConnection);
// QtQuick
m_Park->setEnabled(true);
m_Unpark->setEnabled(true);
m_Park->setEnabled(!currentTelescope->isParked());
m_Unpark->setEnabled(currentTelescope->isParked());
}
else
{
......
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