Skip to content
Snippets Groups Projects
Commit 0f251fad authored by Marko Mecina's avatar Marko Mecina
Browse files

reconnect to IDB when session times out

parent f1814751
No related branches found
No related tags found
No related merge requests found
......@@ -1065,6 +1065,7 @@ class TstAppWindow(Gtk.ApplicationWindow):
return
def on_set_idb_version(self, *args):
self.reconnect_mib()
dialog = IDBChooser()
dialog.set_transient_for(self)
......@@ -1104,6 +1105,10 @@ class TstAppWindow(Gtk.ApplicationWindow):
self.data_pool_tab = dpt.DataPoolTable()
self.feature_area.insert_page(self.data_pool_tab, self.label_widget_data_pool, 3)
@staticmethod
def reconnect_mib():
cfl.scoped_session_idb.close()
class IDBChooser(Gtk.Dialog):
def __init__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment