mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #2191 from pypeclub/bugfix/project_manager_tasks_copy
Project Manager: Fix copying of tasks
This commit is contained in:
commit
4756e95f3c
1 changed files with 5 additions and 1 deletions
|
|
@ -1456,7 +1456,11 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
return
|
||||
|
||||
raw_data = mime_data.data("application/copy_task")
|
||||
encoded_data = QtCore.QByteArray.fromRawData(raw_data)
|
||||
if isinstance(raw_data, QtCore.QByteArray):
|
||||
# Raw data are already QByteArrat and we don't have to load them
|
||||
encoded_data = raw_data
|
||||
else:
|
||||
encoded_data = QtCore.QByteArray.fromRawData(raw_data)
|
||||
stream = QtCore.QDataStream(encoded_data, QtCore.QIODevice.ReadOnly)
|
||||
text = stream.readQString()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue