Skip to content
Snippets Groups Projects
Commit 1cb46cb5 authored by Nick Schermer's avatar Nick Schermer
Browse files

Empty channel if 4.6 migration failed.

parent ae14d937
No related branches found
No related tags found
No related merge requests found
......@@ -909,6 +909,10 @@ migrate_46 (const gchar *filename,
succeed = TRUE;
}
/* if parsing failed somehow, empty the channel so no broken config is left */
if (!succeed)
xfconf_channel_reset_property (parser->channel, "/", TRUE);
g_free (contents);
g_markup_parse_context_free (context);
g_object_unref (G_OBJECT (parser->channel));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment