Merge pull request #894 from zeth/race-condition

Deal with race condition.
This commit is contained in:
Tobias Frisch 2021-06-21 18:38:35 +02:00 committed by GitHub
commit 4bfd663886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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