aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-import-pidgin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 0baf70a1a..804936eae 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -30,6 +30,7 @@
#include <libmissioncontrol/mc-account.h>
#include <telepathy-glib/util.h>
+#include <telepathy-glib/dbus.h>
#include "empathy-import-dialog.h"
#include "empathy-import-pidgin.h"
@@ -294,11 +295,7 @@ empathy_import_pidgin_load (void)
if (!tp_strdiff (
mc_profile_get_protocol_name (data->profile), "jabber"))
{
- GValue *server;
- server = g_hash_table_lookup (data->settings, "server");
-
- if (server == NULL
- || EMP_STR_EMPTY (g_value_get_string (server)))
+ if (EMP_STR_EMPTY (tp_asv_get_string (data->settings, "server")))
{
g_hash_table_remove (data->settings, "port");
g_hash_table_remove (data->settings, "server");