Commit 0feef371 by Őry, Máté

laborclient: resetKey on destroy

parent aee4a5ea
......@@ -60,7 +60,7 @@ class Browser:
#Init window components
gobject.threads_init()
self.window = gtk.Window()
self.window.connect("destroy", gtk.main_quit)
self.window.connect("destroy", self.destroy)
self.window.set_title("IK CloudStore Login")
#Init toolbar
......@@ -90,6 +90,10 @@ class Browser:
#self.window.add(self.browser)
self.window.show_all()
def destroy(self, dummy):
self.browser.execute_script("resetKey()")
gtk.main_quit()
def on_navigation_requested(self, view, frame, req, data=None):
uri = req.get_uri()
#print "On nav: " + uri
......
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 sign in to comment