Skip to content

Commit

Permalink
Merge pull request #894 from zeth/race-condition
Browse files Browse the repository at this point in the history
Deal with race condition.
  • Loading branch information
TheJackiMonster committed Jun 21, 2021
2 parents a29bf79 + 9a5117b commit 4bfd663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manuskript/models/abstractItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ def siblings(self):
###############################################################################

def getUniqueID(self, recursive=False):
if not self._model:
return

self.setData(self.enum.ID, self._model.requestNewID())

if recursive:
Expand Down

0 comments on commit 4bfd663

Please sign in to comment.