warning popup instead of crash if importing browser fails
This commit is contained in:
parent
d647031bee
commit
659c1c5f34
|
@ -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…
Reference in New Issue