Refresh relation list in any case

If a query was failing, created relations were not shown in the list
of relations.
This commit is contained in:
Salvo 'LtWorf' Tomaselli 2015-09-09 14:45:17 +02:00
parent 1b2dc96af1
commit c6d6bbfeaf

View File

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