aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-17 19:09:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-23 23:06:37 +0800
commit76ece46082b1a487acca4abea728c296b586824e (patch)
treef2077d822f2365113fba07c89f0cad71be86d33d
parent6738d193bf3e30d0befaa3e8183cc75ffe607982 (diff)
downloadgsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar.gz
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar.bz2
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar.lz
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar.xz
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.tar.zst
gsoc2013-empathy-76ece46082b1a487acca4abea728c296b586824e.zip
account_widget_combobox_changed_cb: check that param has a default
-rw-r--r--libempathy-gtk/empathy-account-widget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index caa899859..3668232fb 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -304,7 +304,7 @@ account_widget_combobox_changed_cb (GtkWidget *widget,
GtkTreeModel *model;
const gchar *value;
const GValue *v;
- const gchar *default_value;
+ const gchar *default_value = NULL;
const gchar *param_name;
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
@@ -318,7 +318,8 @@ account_widget_combobox_changed_cb (GtkWidget *widget,
param_name = g_object_get_data (G_OBJECT (widget), "param_name");
v = empathy_account_settings_get_default (priv->settings, param_name);
- default_value = g_value_get_string (v);
+ if (v != NULL)
+ default_value = g_value_get_string (v);
if (!tp_strdiff (value, default_value))
{