Fix opening links from Help menu and others

This commit is contained in:
Andrew Resch 2009-01-16 02:45:36 +00:00
parent bc0df7b6a7
commit 91dfbffd69
2 changed files with 12 additions and 11 deletions

View file

@ -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

View file

@ -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