[ekiga] Migrate setting from Disable to Enable network detection



commit def579cea8b9d54e6c832976d43276a1e6a2d74d
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Mon Jul 19 13:14:38 2010 +0200

    Migrate setting from Disable to Enable network detection
    
    Finally closes bug 578884.

 src/gui/conf.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/conf.cpp b/src/gui/conf.cpp
index 31e03aa..4121203 100644
--- a/src/gui/conf.cpp
+++ b/src/gui/conf.cpp
@@ -59,6 +59,8 @@
 void
 gnomemeeting_conf_upgrade ()
 {
+  int version = gm_conf_get_int (GENERAL_KEY "version");
+
   /* Install the sip:, h323: and callto: GNOME URL Handlers */
   gchar *conf_url = gm_conf_get_string ("/desktop/gnome/url-handlers/callto/command");
 
@@ -176,4 +178,9 @@ gnomemeeting_conf_upgrade ()
     g_free (new_device);
   }
   g_free (plugin);
+
+  // migrate from Disable to Enable network detection
+  if (version < 3030)
+    gm_conf_set_bool (NAT_KEY "enable_stun",
+                      ! gm_conf_get_bool (NAT_KEY "disable_stun"));
 }



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