UI: Disable drag/drop on Linux scenes/sources (for now)

Due to a Qt issue on Linux, disable drag/drop on the scenes/sources list
on Linux for the time being.
This commit is contained in:
jp9000
2021-05-31 12:18:45 -07:00
parent 33bdef6cc7
commit 457adcedd3
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -883,8 +883,11 @@ Qt::ItemFlags SourceTreeModel::flags(const QModelIndex &index) const
obs_sceneitem_t *item = items[index.row()];
bool is_group = obs_sceneitem_is_group(item);
/* XXX: Disable drag/drop on Linux until Qt issues are fixed */
return QAbstractListModel::flags(index) | Qt::ItemIsEditable |
#if defined(_WIN32) || defined(__APPLE__)
Qt::ItemIsDragEnabled |
#endif
(is_group ? Qt::ItemIsDropEnabled : Qt::NoItemFlags);
}