mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-04 01:28:07 +00:00
Fix nullptr reference when trayicon is disabled (#1742)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user