mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix right click to edit images in the preview panel not working in books with html files and images in separate top level folders
This commit is contained in:
parent
07201fc280
commit
20b2b0d5d4
@ -400,9 +400,7 @@ class WebView(RestartingWebEngineView, OpenWithHandler):
|
||||
if url.scheme() == FAKE_PROTOCOL:
|
||||
href = url.path().lstrip('/')
|
||||
c = current_container()
|
||||
current_name = self.parent().current_name
|
||||
if current_name:
|
||||
resource_name = c.href_to_name(href, current_name)
|
||||
resource_name = c.href_to_name(href)
|
||||
if resource_name and c.exists(resource_name) and resource_name not in c.names_that_must_not_be_changed:
|
||||
self.add_open_with_actions(menu, resource_name)
|
||||
if data.mediaType() == data.MediaTypeImage:
|
||||
|
Loading…
x
Reference in New Issue
Block a user