Remove some useless code
This commit is contained in:
parent
384eee2744
commit
2d2f8f7700
|
@ -200,15 +200,8 @@ def open_url_in_browser(url):
|
|||
|
||||
:param url: the url to open
|
||||
"""
|
||||
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()
|
||||
webbrowser.open(url)
|
||||
|
||||
## Formatting text functions
|
||||
|
||||
|
|
|
@ -42,11 +42,8 @@ class AboutDialog:
|
|||
self.about.set_name("Deluge")
|
||||
self.about.set_program_name("Deluge")
|
||||
|
||||
# Get the version and revision numbers
|
||||
rev = deluge.common.get_revision()
|
||||
version = deluge.common.get_version()
|
||||
if rev != "":
|
||||
version = version + "r" + rev
|
||||
|
||||
self.about.set_copyright(u'Copyright \u00A9 2007-2009 Andrew Resch')
|
||||
self.about.set_comments("A peer-to-peer file sharing program\nutilizing the Bittorrent protocol.")
|
||||
self.about.set_version(version)
|
||||
|
|
Loading…
Reference in New Issue