use open_url to handle FileOpen event

This commit is contained in:
Anton S 2017-10-10 01:31:31 +03:00
parent 00f0e519a9
commit 14da05f7b1

View File

@ -832,9 +832,7 @@ class Application(QApplication):
url = e.url() url = e.url()
log.misc.info("Got FileOpen event: {}".format(url.toDisplayString())) log.misc.info("Got FileOpen event: {}".format(url.toDisplayString()))
tabbed_browser = objreg.get('tabbed-browser', scope='window', open_url(url, force_raise=False)
window='last-focused')
tabbed_browser.tabopen(url, related=False)
return True return True