Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/align/offlineastrometryparser.cpp
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 264 | #ifdef Q_OS_OSX | |||
---|---|---|---|---|---|
275 | } | 275 | } | ||
276 | solver->setProcessEnvironment(env); | 276 | solver->setProcessEnvironment(env); | ||
277 | #endif | 277 | #endif | ||
278 | 278 | | |||
279 | connect(solver, SIGNAL(finished(int)), this, SLOT(solverComplete(int))); | 279 | connect(solver, SIGNAL(finished(int)), this, SLOT(solverComplete(int))); | ||
280 | connect(solver, SIGNAL(readyReadStandardOutput()), this, SLOT(logSolver())); | 280 | connect(solver, SIGNAL(readyReadStandardOutput()), this, SLOT(logSolver())); | ||
281 | 281 | | |||
282 | #if QT_VERSION > QT_VERSION_CHECK(5, 6, 0) | 282 | #if QT_VERSION > QT_VERSION_CHECK(5, 6, 0) | ||
283 | connect(solver, &QProcess::errorOccurred, this, [&]() { | 283 | connect(solver.data(), &QProcess::errorOccurred, this, [&]() { | ||
284 | align->appendLogText(i18n("Error starting solver: %1", solver->errorString())); | 284 | align->appendLogText(i18n("Error starting solver: %1", solver->errorString())); | ||
285 | emit solverFailed(); | 285 | emit solverFailed(); | ||
286 | }); | 286 | }); | ||
287 | #else | 287 | #else | ||
288 | connect(solver, SIGNAL(error(QProcess::ProcessError)), this, SIGNAL(solverFailed())); | 288 | connect(solver, SIGNAL(error(QProcess::ProcessError)), this, SIGNAL(solverFailed())); | ||
289 | #endif | 289 | #endif | ||
290 | 290 | | |||
291 | solverTimer.start(); | 291 | solverTimer.start(); | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |