Refresh relation list in any case

If a query was failing, created relations were not shown in the list
of relations.
master
Salvo 'LtWorf' Tomaselli 2015-09-09 14:45:17 +07:00
parent 1b2dc96af1
commit c6d6bbfeaf
1 changed files with 2 additions and 1 deletions

@ -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)