diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-01-16 02:45:36 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-01-16 02:45:36 +0000 |
commit | 91dfbffd6966a7dbbc750dfc4f2398c285c8fe10 (patch) | |
tree | 7b4a9203a836cb9a496842418d831d2380ab0510 | |
parent | bc0df7b6a7cda0e81951857ad6985d63b8270abe (diff) | |
download | deluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.tar.gz deluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.tar.bz2 deluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.zip |
Fix opening links from Help menu and others
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | deluge/common.py | 20 |
2 files changed, 12 insertions, 11 deletions
@@ -2,6 +2,9 @@ Deluge 1.1.1 - (In Development) Core: * Fix oldstateupgrader for those upgrading from 0.5.x + GtkUI: + * Fix opening links from Help menu and others + Misc: * Fix bdecoding some torrent files * Fix the -l, --logfile option diff --git a/deluge/common.py b/deluge/common.py index e1df31779..904a9d05c 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -188,17 +188,15 @@ def open_url_in_browser(url): :param url: the url to open """ - def start_browser(): - import threading - import webbrowser - class BrowserThread(threading.Thread): - def __init__(self, url): - threading.Thread.__init__(self) - self.url = url - def run(self): - webbrowser.open(self.url) - BrowserThread(url).start() - return False + import threading + import webbrowser + class BrowserThread(threading.Thread): + def __init__(self, url): + threading.Thread.__init__(self) + self.url = url + def run(self): + webbrowser.open(self.url) + BrowserThread(url).start() ## Formatting text functions |