From 623c5ab57be0278cd835a0c45c4448f544de754a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 10 Jan 2010 19:47:31 +0000 Subject: [PATCH] Fix displaying new release dialog in Windows --- deluge/ui/gtkui/mainwindow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/mainwindow.py b/deluge/ui/gtkui/mainwindow.py index f7a6d2b5a..ad33fd044 100644 --- a/deluge/ui/gtkui/mainwindow.py +++ b/deluge/ui/gtkui/mainwindow.py @@ -64,7 +64,7 @@ class MainWindow(component.Component): self.window = self.main_glade.get_widget("main_window") self.window.set_icon(common.get_deluge_icon()) - + self.vpaned = self.main_glade.get_widget("vpaned") self.initial_vpaned_position = self.config["window_pane_position"] @@ -238,8 +238,9 @@ class MainWindow(component.Component): def on_newversionavailable_event(self, new_version): if self.config["show_new_releases"]: + from twisted.internet import reactor from deluge.ui.gtkui.new_release_dialog import NewReleaseDialog - NewReleaseDialog().show(new_version) + reactor.callLater(5.0, NewReleaseDialog().show, new_version) def on_torrentfinished_event(self, torrent_id): from deluge.ui.gtkui.notification import Notification