Unverified Commit 4cc9af42 authored by Милош Павловић's avatar Милош Павловић Committed by GitHub

Fix crash on Left / Right / Home / End keyboard...

...key press when no image is loaded
parent d51b8b49
......@@ -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);
......
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