Commit d9b146ee authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[preview] Use new open_uri method to open links

parent b166a388
...@@ -638,7 +638,7 @@ class Base(object): ...@@ -638,7 +638,7 @@ class Base(object):
original_filename = data["original_filename"] original_filename = data["original_filename"]
url = data["url"] url = data["url"]
if original_filename.startswith('location_'): if original_filename.startswith('location_'):
helpers.launch_browser_mailer('url', url) helpers.open_uri(url)
return return
helpers.launch_file_manager(filepath) helpers.launch_file_manager(filepath)
...@@ -677,7 +677,7 @@ class Base(object): ...@@ -677,7 +677,7 @@ class Base(object):
'in Browser" instead.'), 'in Browser" instead.'),
transient_for=app.app.get_active_window()) transient_for=app.app.get_active_window())
else: else:
helpers.launch_browser_mailer('url', url) helpers.open_uri(url)
def on_open_file_in_browser_menuitem_activate(self, menu, data): def on_open_file_in_browser_menuitem_activate(self, menu, data):
if os.name == "nt": if os.name == "nt":
......
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