[gnome-clocks/wip/geolocation] Mark up automatic location



commit c3bdf9cc4a583a77d1937c0fd484d17fa71d1236
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date:   Mon Aug 26 22:10:29 2013 +0200

    Mark up automatic location

 src/world.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/world.vala b/src/world.vala
index f4b0824..e933559 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -343,7 +343,9 @@ public class MainPanel : Gtk.Stack, Clocks.Clock {
     private void save () {
         var builder = new GLib.VariantBuilder (new VariantType ("aa{sv}"));
         foreach (Item i in locations) {
-            i.serialize (builder);
+            if (!i.automatic) {
+                i.serialize (builder);
+            }
         }
         settings.set_value ("world-clocks", builder.end ());
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]