From 54467e6d459aaa738709d9a659e292f0ddd3ec3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 21 May 2020 20:06:49 +0200 Subject: [PATCH] Fixed build with Qt < 5.2 --- src/GUI/gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 5592ebe6..c0c5a16f 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -1879,9 +1879,11 @@ void GUI::writeSettings() if (_options.showSecondarySpeed != SHOW_SECONDARY_SPEED_DEFAULT) settings.setValue(SHOW_SECONDARY_SPEED_SETTING, _options.showSecondarySpeed); +#ifdef ENABLE_TIMEZONES if (_options.timeZone != TimeZoneInfo()) settings.setValue(TIME_ZONE_SETTING, QVariant::fromValue( _options.timeZone)); +#endif // ENABLE_TIMEZONES if (_options.poiRadius != POI_RADIUS_DEFAULT) settings.setValue(POI_RADIUS_SETTING, _options.poiRadius); if (_options.useOpenGL != USE_OPENGL_DEFAULT)