summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-06 09:09:16 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-06 09:09:16 (GMT)
commit09f7929799b17d2655029a5bdcd9bd83834d15b9 (patch)
tree8c4caad00e2d8098aef3ea23b010a3574a7f076a
parentb6c7370087936461364518a18ed80c1a8641866d (diff)
Connect streamWindow when there is a valid object. Make it unique
-rw-r--r--kstars/indi/indiccd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp
index 62642a4..bb48d17 100644
--- a/kstars/indi/indiccd.cpp
+++ b/kstars/indi/indiccd.cpp
@@ -1007,11 +1007,10 @@ void CCD::processSwitch(ISwitchVectorProperty *svp)
}
- streamWindow->disconnect();
- connect(streamWindow, SIGNAL(hidden()), this, SLOT(StreamWindowHidden()));
-
if (streamWindow)
{
+ connect(streamWindow, SIGNAL(hidden()), this, SLOT(StreamWindowHidden()), Qt::UniqueConnection);
+
if (svp->sp[0].s == ISS_ON)
streamWindow->enableStream(true);
else