summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-13 13:51:59 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-13 13:51:59 (GMT)
commit87edf909c16bdbd3e6776475fcb8e8b7bb532176 (patch)
treeffb402fe961c4d819c71c344c1a8cd7bc464a537
parent4e97f5be53e8981c626a8ac9caa74f3406a040fd (diff)
Worldclock: default locationLongitude to 0 if not available
-rw-r--r--src/plasma/applets/worldclock/package/contents/ui/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plasma/applets/worldclock/package/contents/ui/main.qml b/src/plasma/applets/worldclock/package/contents/ui/main.qml
index 54ebde8..54a6f10 100644
--- a/src/plasma/applets/worldclock/package/contents/ui/main.qml
+++ b/src/plasma/applets/worldclock/package/contents/ui/main.qml
@@ -51,7 +51,7 @@ Item {
readonly property int centerMode: plasmoid.configuration.centerMode
readonly property double fixedLongitude: plasmoid.configuration.fixedLongitude
- readonly property double locationLongitude: geolocationDataSource.data.longitude
+ readonly property double locationLongitude: geolocationDataSource.data.longitude || 0
enabled: false // do not handle input
Layout.minimumWidth: units.gridUnit * 20