summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-28 17:31:16 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-28 17:31:16 (GMT)
commit40760c3c26b8693cf1eb606b733b3144443976b0 (patch)
treeae91d86ff2e641e6ca96bca0b28114ffeed1b083
parent316e19a9068724b06953d715e0ac1ab902d354ba (diff)
Use the old-style connect for the deprecated function to make it compile on Qt < 5.6
-rw-r--r--kstars/ekos/align/offlineastrometryparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kstars/ekos/align/offlineastrometryparser.cpp b/kstars/ekos/align/offlineastrometryparser.cpp
index 59c0638..b6b2fa3 100644
--- a/kstars/ekos/align/offlineastrometryparser.cpp
+++ b/kstars/ekos/align/offlineastrometryparser.cpp
@@ -200,13 +200,13 @@ bool OfflineAstrometryParser::startSovler(const QString &filename, const QStrin
#if QT_VERSION > QT_VERSION_CHECK(5,6,0)
connect(&solver, &QProcess::errorOccurred, this, [&]()
-#else
- connect(&solver, &QProcess::error, this, [&]()
-#endif
{
align->appendLogText(i18n("Error starting solver: %1", solver.errorString()));
emit solverFailed();
});
+#else
+ connect(&solver, SIGNAL(error(QProcess::ProcessError)), this, SIGNAL(solverFailed()));
+#endif
solverTimer.start();