summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2017-02-23 17:04:36 (GMT)
committerTobias Markmann <tm@ayena.de>2017-02-23 17:04:36 (GMT)
commit8803538bc29a3b68d3c69d900f41ddd1b383cec6 (patch)
treea24165154e85ce3374298a0cb624ee5263499744 /Swift
parent8a5230c10571f7bb52967d672008ccf603391f2f (diff)
downloadswift-8803538bc29a3b68d3c69d900f41ddd1b383cec6.zip
swift-8803538bc29a3b68d3c69d900f41ddd1b383cec6.tar.bz2
Fix crash in Swift about dialog if build w/o auto update support
Test-Information: Previously Swift crashed on QtAboutWidget.cpp:175 when build without any auto update support. Now it does not anymore. Tested on macOS 10.12.3 with Qt 5.5.1. Change-Id: Ia58ec3679d107cfd6b736e54e90a4167cf1adc47
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtAboutWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtAboutWidget.cpp b/Swift/QtUI/QtAboutWidget.cpp
index 3bc124a..a2aa65c 100644
--- a/Swift/QtUI/QtAboutWidget.cpp
+++ b/Swift/QtUI/QtAboutWidget.cpp
@@ -152,7 +152,7 @@ void QtAboutWidget::updateUpdateInfo() {
updateProgressBar_->hide();
// Currently auto updating is only supported on macOS.
#ifdef SWIFTEN_PLATFORM_MACOSX
- if (settingsProvider_->getSetting(QtUISettingConstants::ENABLE_SOFTWARE_UPDATES)) {
+ if (autoUpdater_ && settingsProvider_->getSetting(QtUISettingConstants::ENABLE_SOFTWARE_UPDATES)) {
if (!settingsProvider_->getSetting(QtUISettingConstants::SOFTWARE_UPDATE_CHANNEL).empty()) {
QString updateFeedDescription;
auto addUpdateFeedDialogLink = false;