Unverified Commit eb4110e9 authored by Victor Ananjevsky's avatar Victor Ananjevsky Committed by GitHub

Merge pull request #173 from Misko-2083/patch-1

Run image changed hook after image load
parents ffd69794 4cc9af42
......@@ -108,7 +108,9 @@ img_changed_hook ()
if (options.picture_data.change_cmd == NULL)
return;
if (!img)
return;
qfn = g_shell_quote (img->filename);
if (g_strstr_len (options.picture_data.change_cmd, -1, "%s") != NULL)
cmd = g_strdup_printf (options.picture_data.change_cmd, qfn);
......@@ -322,6 +324,7 @@ open_file_cb (GtkWidget *w, gpointer d)
lp = g_list_first (img_list);
img = (ImageItem *) lp->data;
load_picture ();
img_changed_hook ();
/* recreate menu */
gtk_widget_destroy (popup_menu);
......
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