diff --git a/kstars/ekos/align/offlineastrometryparser.cpp b/kstars/ekos/align/offlineastrometryparser.cpp --- a/kstars/ekos/align/offlineastrometryparser.cpp +++ b/kstars/ekos/align/offlineastrometryparser.cpp @@ -280,7 +280,7 @@ connect(solver, SIGNAL(readyReadStandardOutput()), this, SLOT(logSolver())); #if QT_VERSION > QT_VERSION_CHECK(5, 6, 0) - connect(solver, &QProcess::errorOccurred, this, [&]() { + connect(solver.data(), &QProcess::errorOccurred, this, [&]() { align->appendLogText(i18n("Error starting solver: %1", solver->errorString())); emit solverFailed(); }); diff --git a/kstars/ekos/profilewizard.cpp b/kstars/ekos/profilewizard.cpp --- a/kstars/ekos/profilewizard.cpp +++ b/kstars/ekos/profilewizard.cpp @@ -272,7 +272,7 @@ stellarMateDetectDialog->show(); - connect(stellarMateDetectDialog, &QProgressDialog::canceled, [&]() + connect(stellarMateDetectDialog.data(), &QProgressDialog::canceled, [&]() { qMDNS::getInstance()->disconnect(); });