Fix move storage dialog not closing

This commit is contained in:
Calum Lind 2014-07-16 15:00:16 +01:00
parent 8920db694c
commit bd119bccf4

View File

@ -356,6 +356,7 @@ class MenuBar(component.Component):
def on_dialog_response_event(widget, response_id): def on_dialog_response_event(widget, response_id):
def on_core_result(result): def on_core_result(result):
# Delete references # Delete references
self.move_storage_dialog.hide()
del self.move_storage_dialog del self.move_storage_dialog
del self.move_storage_dialog_hbox del self.move_storage_dialog_hbox
@ -366,7 +367,6 @@ class MenuBar(component.Component):
client.core.move_storage( client.core.move_storage(
component.get("TorrentView").get_selected_torrents(), path component.get("TorrentView").get_selected_torrents(), path
).addCallback(on_core_result) ).addCallback(on_core_result)
self.move_storage_dialog.hide()
self.move_storage_dialog.connect("response", on_dialog_response_event) self.move_storage_dialog.connect("response", on_dialog_response_event)
self.move_storage_dialog.show() self.move_storage_dialog.show()