*** empty log message ***
[m17n/m17n-im-config.git] / src / mim-config.c
index ae19749..04c01cf 100644 (file)
@@ -475,7 +475,7 @@ static gboolean
 reset_to_default (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter,
                  gpointer data)
 {
-  enum MimStatus status;
+  enum MimStatus status, new_status;
   MSymbol lang, name;
   MimConfigStatus *config_status = data;
   MPlist *empty = mplist ();
@@ -488,8 +488,9 @@ reset_to_default (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter,
     return FALSE;
   minput_config_variable (lang, name, Mnil, empty);
   minput_config_command (lang, name, Mnil, empty);
-  status = get_mim_status (lang, name);
-  update_child_row (model, iter, status, config_status, NULL);
+  new_status = get_mim_status (lang, name);
+  if (status != new_status)
+    update_child_row (model, iter, new_status, config_status, NULL);
   return FALSE;
 }