mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
warning popup instead of crash if importing browser fails
This commit is contained in:
parent
d647031bee
commit
659c1c5f34
1 changed files with 7 additions and 2 deletions
|
@ -245,8 +245,13 @@ class DelugeGTK:
|
||||||
self.manager.pause_all()
|
self.manager.pause_all()
|
||||||
|
|
||||||
def launch_browser_clicked(self, arg=None):
|
def launch_browser_clicked(self, arg=None):
|
||||||
import browser
|
try:
|
||||||
browser.Browser()
|
import browser
|
||||||
|
browser.Browser()
|
||||||
|
except:
|
||||||
|
dialogs.show_popup_warning(self.window, _("Unable to state browser. \
|
||||||
|
Make sure you have python-gnome2-extras installed or try setting your LD_LIBRARY_PATH \
|
||||||
|
and MOZILLA_FIVE_HOME environment variables to /usr/lib/firefox"))
|
||||||
|
|
||||||
def resume_all_clicked(self, arg=None):
|
def resume_all_clicked(self, arg=None):
|
||||||
self.manager.resume_all()
|
self.manager.resume_all()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue