]> git.0d.be Git - empathy.git/commitdiff
Set an empty password for pidgin accounts that have no password set.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 5 Jun 2009 14:04:40 +0000 (15:04 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 5 Jun 2009 14:04:40 +0000 (15:04 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
src/empathy-import-pidgin.c

index fad9d83da3f547e73741e8ad4e0afcd79c01c678..9b48c6883c30cea2e041cc8f21a30e417dd9e810 100644 (file)
@@ -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