summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-01-16 02:45:36 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-01-16 02:45:36 +0000
commit91dfbffd6966a7dbbc750dfc4f2398c285c8fe10 (patch)
tree7b4a9203a836cb9a496842418d831d2380ab0510
parentbc0df7b6a7cda0e81951857ad6985d63b8270abe (diff)
downloaddeluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.tar.gz
deluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.tar.bz2
deluge-91dfbffd6966a7dbbc750dfc4f2398c285c8fe10.zip
Fix opening links from Help menu and others
-rw-r--r--ChangeLog3
-rw-r--r--deluge/common.py20
2 files changed, 12 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 49a34bea6..e3b42ade5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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