Commit 8740bf03 authored by Rui Matos's avatar Rui Matos
Browse files

region: Fix input source rows selection getting lost

parent 5aa88834
......@@ -766,15 +766,17 @@ input_sources_changed (GSettings *settings,
CcRegionPanelPrivate *priv = self->priv;
GtkWidget *selected;
const gchar *id = NULL;
gchar *id = NULL;
selected = egg_list_box_get_selected_child (EGG_LIST_BOX (priv->input_list));
if (selected)
id = (const gchar *)g_object_get_data (G_OBJECT (selected), "id");
id = g_strdup (g_object_get_data (G_OBJECT (selected), "id"));
clear_input_sources (self);
add_input_sources_from_settings (self);
if (id)
if (id) {
select_input (self, id);
g_free (id);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment