mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user