9278: Crash when dragging multiple media items to clipboard
This commit is contained in:
parent
1a35de0446
commit
dba68c5876
@ -864,8 +864,10 @@ class ClipDropList(object):
|
|||||||
retval = []
|
retval = []
|
||||||
for (target, handle) in handles:
|
for (target, handle) in handles:
|
||||||
_class = map2class(target)
|
_class = map2class(target)
|
||||||
obj = _class(self._dbstate, pickle.dumps((target, id, handle, timestamp)))
|
if _class:
|
||||||
retval.append(obj)
|
obj = _class(self._dbstate, pickle.dumps((target, id, handle, timestamp)))
|
||||||
|
if obj:
|
||||||
|
retval.append(obj)
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
class ClipDropRawList(ClipDropList):
|
class ClipDropRawList(ClipDropList):
|
||||||
|
Loading…
Reference in New Issue
Block a user