Fix add torrent dialog closing preventing another dialog from being

shown
This commit is contained in:
Andrew Resch 2008-08-28 20:42:19 +00:00
parent 135a0ca7e9
commit 584226db96
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Deluge 0.9.09 - "1.0.0_RC9" (In Development)
GtkUI:
* Fix add torrent dialog closing preventing another dialog from being shown
Deluge 0.9.08 - "1.0.0_RC8" (27 August 2008)
Core:
* Attempt to automatically upgrade a 0.5.x state file to new format

View file

@ -54,7 +54,9 @@ class AddTorrentDialog(component.Component):
"deluge.ui.gtkui", "glade/add_torrent_dialog.glade"))
self.dialog = self.glade.get_widget("dialog_add_torrent")
self.dialog.connect("delete-event", self._on_delete_event)
self.glade.signal_autoconnect({
"on_button_file_clicked": self._on_button_file_clicked,
"on_button_url_clicked": self._on_button_url_clicked,
@ -614,3 +616,7 @@ class AddTorrentDialog(component.Component):
del self.options[model.get_value(row, 0)]
self.set_default_options()
def _on_delete_event(self, widget, event):
self.hide()
return True