[empathy] Set an empty password for pidgin accounts that have no password set.



commit 48236b65f7ac33d05f0bc4a7a83ddec1e9ec59aa
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Fri Jun 5 15:04:40 2009 +0100

    Set an empty password for pidgin accounts that have no password set.
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 src/empathy-import-pidgin.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index fad9d83..9b48c68 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -304,6 +304,16 @@ empathy_import_pidgin_load (void)
                 }
             }
 
+          /* If there is no password then MC treats the account as not
+           * ready and doesn't display it. */
+          if (!g_hash_table_lookup (data->settings, "password"))
+            {
+              GValue *value;
+              value = tp_g_value_slice_new (G_TYPE_STRING);
+              g_value_set_string (value, "");
+              g_hash_table_insert (data->settings, "password", value);
+            }
+
           accounts = g_list_prepend (accounts, data);
         }
       else



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