summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-14 20:06:24 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-14 20:06:24 (GMT)
commit7b474dc97b7bae3d5605e2aa146e4aab53c9f728 (patch)
tree80a803cfe133c8750fa199562a4cc72229caac07
parent5ec1c8c947120f20bc6ab3b08256aa934d3ac271 (diff)
Set all connection to UniqueConnection in Align and fix mismatched signal/slot
-rw-r--r--kstars/ekos/align/align.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/kstars/ekos/align/align.cpp b/kstars/ekos/align/align.cpp
index 1ac9226..8338d8e 100644
--- a/kstars/ekos/align/align.cpp
+++ b/kstars/ekos/align/align.cpp
@@ -167,8 +167,8 @@ Align::Align()
setEnabled(false);
else
{
- connect(parser, SIGNAL(solverFinished(double,double,double, double)), this, SLOT(solverFinished(double,double,double, double)));
- connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()));
+ connect(parser, SIGNAL(solverFinished(double,double,double, double)), this, SLOT(solverFinished(double,double,double, double)), Qt::UniqueConnection);
+ connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()), Qt::UniqueConnection);
}
solverOptions->setText(Options::solverOptions());
@@ -199,8 +199,8 @@ bool Align::isParserOK()
if (rc)
{
- connect(parser, SIGNAL(solverFinished(double,double,double)), this, SLOT(solverFinished(double,double,double)));
- connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()));
+ connect(parser, SIGNAL(solverFinished(double,double,double,double)), this, SLOT(solverFinished(double,double,double,double)), Qt::UniqueConnection);
+ connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()), Qt::UniqueConnection);
}
return rc;
@@ -262,8 +262,8 @@ void Align::setSolverType(int type)
parser->setAlign(this);
if (parser->init())
{
- connect(parser, SIGNAL(solverFinished(double,double,double, double)), this, SLOT(solverFinished(double,double,double, double)));
- connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()));
+ connect(parser, SIGNAL(solverFinished(double,double,double, double)), this, SLOT(solverFinished(double,double,double, double)), Qt::UniqueConnection);
+ connect(parser, SIGNAL(solverFailed()), this, SLOT(solverFailed()), Qt::UniqueConnection);
}
else
parser->disconnect();
@@ -377,7 +377,6 @@ void Align::syncTelescopeInfo()
void Align::syncCCDInfo()
{
INumberVectorProperty * nvp = NULL;
- int x,y;
if (currentCCD == NULL)
return;