[ekiga] Migrate user's custom statuses (online->available, dnd->busy)



commit 8fb89f99e4947a1447b9c9fcc650cdcc5754c611
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Thu May 31 12:24:51 2012 +0200

    Migrate user's custom statuses (online->available, dnd->busy)

 src/gui/conf.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/conf.cpp b/src/gui/conf.cpp
index b6e15f0..d2a8bad 100644
--- a/src/gui/conf.cpp
+++ b/src/gui/conf.cpp
@@ -181,4 +181,12 @@ gnomemeeting_conf_upgrade ()
   if (version <= 3031)
     gm_conf_set_bool (AUDIO_CODECS_KEY "enable_echo_cancellation",
                       gm_conf_get_bool (AUDIO_CODECS_KEY "enable_echo_cancelation"));
+
+  // migrate custom statuses from online to available, and from dnd to busy
+  if (version <= 3032) {
+    gm_conf_set_string_list (PERSONAL_DATA_KEY "available_custom_status",
+                             gm_conf_get_string_list (PERSONAL_DATA_KEY "online_custom_status"));
+    gm_conf_set_string_list (PERSONAL_DATA_KEY "busy_custom_status",
+                             gm_conf_get_string_list (PERSONAL_DATA_KEY "dnd_custom_status"));
+  }
 }



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