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:
parent
1b2dc96af1
commit
c6d6bbfeaf
@ -98,7 +98,8 @@ class relForm(QtWidgets.QMainWindow):
|
|||||||
result = self.user_interface.multi_execute(query)
|
result = self.user_interface.multi_execute(query)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return self.error(e)
|
return self.error(e)
|
||||||
self.updateRelations() # update the list
|
finally:
|
||||||
|
self.updateRelations()
|
||||||
self.selectedRelation = result
|
self.selectedRelation = result
|
||||||
self.showRelation(self.selectedRelation)
|
self.showRelation(self.selectedRelation)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user