diff --git a/deluge/common.py b/deluge/common.py index d3e1827e6..47f53c371 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -112,7 +112,6 @@ def open_url_in_browser(url): """Opens link in the desktop's default browser""" def start_browser(): import webbrowser - log.debug("Opening webbrowser with url: %s", url) webbrowser.open(url) return False diff --git a/deluge/ui/gtkui/menubar.py b/deluge/ui/gtkui/menubar.py index c2bc775eb..07b62ed99 100644 --- a/deluge/ui/gtkui/menubar.py +++ b/deluge/ui/gtkui/menubar.py @@ -38,6 +38,7 @@ import pkg_resources import deluge.component as component import deluge.ui.client as client +import deluge.common as common from deluge.log import LOG as log @@ -240,15 +241,15 @@ class MenuBar(component.Component): ## Help Menu ## def on_menuitem_homepage_activate(self, data=None): log.debug("on_menuitem_homepage_activate") - client.open_url_in_browser("http://deluge-torrent.org") + common.open_url_in_browser("http://deluge-torrent.org") def on_menuitem_faq_activate(self, data=None): log.debug("on_menuitem_faq_activate") - client.open_url_in_browser("http://deluge-torrent.org/faq.php") + common.open_url_in_browser("http://deluge-torrent.org/faq.php") def on_menuitem_community_activate(self, data=None): log.debug("on_menuitem_community_activate") - client.open_url_in_browser("http://forum.deluge-torrent.org/") + common.open_url_in_browser("http://forum.deluge-torrent.org/") def on_menuitem_about_activate(self, data=None): log.debug("on_menuitem_about_activate")