Clear session function

Added a function to clear the current session
master
Salvo 'LtWorf' Tomaselli 2015-09-09 12:38:54 +07:00
parent 7742afd046
commit 66855ad50c
1 changed files with 4 additions and 0 deletions

@ -192,6 +192,10 @@ class relForm(QtWidgets.QMainWindow):
del self.user_interface.relations[i.text()] del self.user_interface.relations[i.text()]
self.updateRelations() self.updateRelations()
def newSession(self):
self.user_interface.session_reset()
self.updateRelations()
def editRelation(self): def editRelation(self):
from relational_gui import creator from relational_gui import creator
for i in self.ui.lstRelations.selectedItems(): for i in self.ui.lstRelations.selectedItems():