[preview] Open file directly if encrypted

If Open Link in Browser is selected as default action for left clicking an image,
the user would get a warning when clicking an encrypted image. Fall back to open
image directly instead of issuing a warning dialog.
This commit is contained in:
Daniel Brötzmann
2019-04-25 09:39:20 +02:00
committed by Philipp Hörist
parent 4901c1e1b7
commit e4c7c446fc

View File

@@ -680,12 +680,7 @@ class Base(object):
def _on_open_link_in_browser_menuitem_activate(self, menu, data):
url = data["url"]
if data["encrypted"]:
dialogs.ErrorDialog(
_('Encrypted file'),
_('You cannot open encrypted files in your '
'browser directly. Try "Open Downloaded File '
'in Browser" instead.'),
transient_for=app.app.get_active_window())
self._on_open_menuitem_activate(self, data)
else:
helpers.open_uri(url)