Commit d7538d45 authored by Franziska Koehn's avatar Franziska Koehn
Browse files

delete-event connected for disconnect from server

parent af2532d6
......@@ -36,6 +36,11 @@ class XsaApp(gtk.Window):
self.connect("destroy", gtk.main_quit)
self.set_title("xsa")
def on_delete_event(*_):
import xsa.queries
xsa.queries.disconnect_xnat_server()
self.connect("delete-event", on_delete_event)
vbox_root = gtk.VBox(False, 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment