diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-04-08 19:44:40 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-04-08 19:44:40 +0200 |
commit | 95da90af2235da1cf51bc41a4096db7ccb532d17 (patch) | |
tree | 08241571c49510f1e381ed238ab73b247ef186d7 /src | |
parent | eaceb6aa881b97de6a7661096b9fa07ea30c269d (diff) |
Notify user when attempting to edit caption of a URL
Diffstat (limited to 'src')
-rw-r--r-- | src/keyevents.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c index 6c2f06e..d09f657 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -691,7 +691,10 @@ void feh_event_handle_generic(winwidget winwid, unsigned int state, KeySym keysy slideshow_change_image(winwid, SLIDE_RAND, 1); } else if (feh_is_kp(EVENT_toggle_caption, state, keysym, button)) { - if (opt.caption_path) { + if (opt.caption_path && path_is_url(FEH_FILE(winwid->file->data)->filename)) { + im_weprintf(winwid, "Caption entry is not supported on URLs"); + } + else if (opt.caption_path) { /* * editing captions in slideshow mode does not make any sense * at all; this is just in case someone accidentally does it... |