diff --git a/src/core/controller.cpp b/src/core/controller.cpp index ffe0ad52..c20d73c6 100644 --- a/src/core/controller.cpp +++ b/src/core/controller.cpp @@ -196,7 +196,9 @@ void Controller::handleReplyCheckUpdates(QNetworkReply* reply) m_appLatestUrl = json["html_url"].toString(); QString newVersion = tr("New version %1 is available").arg(m_appLatestVersion); - m_appUpdates->setText(newVersion); + if (m_appUpdates != nullptr) { + m_appUpdates->setText(newVersion); + } if (m_showCheckAppUpdateStatus) { sendTrayNotification(newVersion, "Flameshot"); QDesktopServices::openUrl(QUrl(m_appLatestUrl));