background: Don't access possibly invalid object
The previous value of CURRENT_BG may not be valid after a call to update_preview. https://bugzilla.gnome.org/show_bug.cgi?id=707569
This commit is contained in:
parent
ffa6d77ce9
commit
cc17b9d471
1 changed files with 1 additions and 0 deletions
|
@ -596,6 +596,7 @@ copy_finished_cb (GObject *source_object,
|
|||
char *filename;
|
||||
|
||||
update_preview (priv, settings, item);
|
||||
current_background = CURRENT_BG;
|
||||
|
||||
/* Save the source XML if there is one */
|
||||
filename = get_save_path (SAVE_PATH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue