Commit 1e92b66b authored by Sven Neumann's avatar Sven Neumann
Browse files

freeze object notifications around reset() and deserialize()

parent 05e39069
......@@ -270,8 +270,12 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
g_object_freeze_notify (G_OBJECT (tool_info->tool_options));
gimp_tool_options_reset (tool_info->tool_options);
gimp_tool_options_deserialize (tool_info->tool_options, "user", NULL);
g_object_thaw_notify (G_OBJECT (tool_info->tool_options));
}
static void
......
......@@ -270,8 +270,12 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
g_object_freeze_notify (G_OBJECT (tool_info->tool_options));
gimp_tool_options_reset (tool_info->tool_options);
gimp_tool_options_deserialize (tool_info->tool_options, "user", NULL);
g_object_thaw_notify (G_OBJECT (tool_info->tool_options));
}
static void
......
Supports Markdown
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