mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Deal with race condition.
This commit is contained in:
parent
a58de3b1f6
commit
8acb9b3839
|
@ -203,6 +203,9 @@ class abstractItem():
|
|||
###############################################################################
|
||||
|
||||
def getUniqueID(self, recursive=False):
|
||||
if not self._model:
|
||||
return
|
||||
|
||||
self.setData(self.enum.ID, self._model.requestNewID())
|
||||
|
||||
if recursive:
|
||||
|
|
Loading…
Reference in a new issue