From c6d6bbfeaf293c9b970e8635524b2275d9e028f7 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 9 Sep 2015 14:45:17 +0200 Subject: [PATCH] Refresh relation list in any case If a query was failing, created relations were not shown in the list of relations. --- relational_gui/guihandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relational_gui/guihandler.py b/relational_gui/guihandler.py index bb9db90..6039fd2 100644 --- a/relational_gui/guihandler.py +++ b/relational_gui/guihandler.py @@ -98,7 +98,8 @@ class relForm(QtWidgets.QMainWindow): result = self.user_interface.multi_execute(query) except Exception as e: return self.error(e) - self.updateRelations() # update the list + finally: + self.updateRelations() self.selectedRelation = result self.showRelation(self.selectedRelation)