summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2010-01-10 19:47:31 +0000
committerAndrew Resch <andrewresch@gmail.com>2010-01-10 19:47:31 +0000
commit79c78fa7ef147729f518c3923ffc2307a625196b (patch)
tree63c302c5245ee6dfc9e52c7f749ea65b091bc154
parent89c9228cec701ad5b50531a9dd02da8b593e0e19 (diff)
downloaddeluge-79c78fa7ef147729f518c3923ffc2307a625196b.tar.gz
deluge-79c78fa7ef147729f518c3923ffc2307a625196b.tar.bz2
deluge-79c78fa7ef147729f518c3923ffc2307a625196b.zip
Fix displaying new release dialog in Windows
-rw-r--r--ChangeLog1
-rw-r--r--deluge/ui/gtkui/mainwindow.py5
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d99c5b3a..aa7114185 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
==== Windows ====
* Fix displaying folders in the add torrent dialog
+ * Fix displaying the new release dialog
==== Blocklist ====
* Fix blocklist status icon not opening the blocklist preference
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