add warning for failed launch in win32

This commit is contained in:
Marcos Pinto 2007-09-14 22:23:38 +00:00
parent dc71d16ac1
commit 63e4724a8c
1 changed files with 7 additions and 2 deletions

View File

@ -36,7 +36,7 @@ import gobject
import gtk
from deluge.files import FilesBaseManager
from deluge import dgtk
from deluge import dgtk, dialogs
class FilesTabManager(FilesBaseManager):
def __init__(self, file_view, manager):
@ -98,7 +98,12 @@ class FilesTabManager(FilesBaseManager):
try:
os.startfile(os.path.join(save_dir, file_name))
except WindowsError:
pass
import gtk
import dialogs
gtk.gdk.threads_enter()
result = dialogs.show_popup_warning(None, _("There is a \
newer version of Deluge. Would you like to be taken to our download site?"))
gtk.gdk.threads_leave()
else:
exec_command(self.file_viewer,
os.path.join(save_dir, file_name))