diff options
Diffstat (limited to 'api/logic/minecraft/SimpleModList.cpp')
-rw-r--r-- | api/logic/minecraft/SimpleModList.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/api/logic/minecraft/SimpleModList.cpp b/api/logic/minecraft/SimpleModList.cpp index bdcf01b7..39f5565d 100644 --- a/api/logic/minecraft/SimpleModList.cpp +++ b/api/logic/minecraft/SimpleModList.cpp @@ -337,13 +337,14 @@ Qt::ItemFlags SimpleModList::flags(const QModelIndex &index) const { Qt::ItemFlags defaultFlags = QAbstractListModel::flags(index); auto flags = defaultFlags; - if(index.isValid()) { - if(interaction_disabled) { - flags &= ~Qt::ItemIsDropEnabled; - flags &= ~Qt::ItemIsUserCheckable; - } else { + if(interaction_disabled) { + flags &= ~Qt::ItemIsDropEnabled; + } + else + { + flags |= Qt::ItemIsDropEnabled; + if(index.isValid()) { flags |= Qt::ItemIsUserCheckable; - flags |= Qt::ItemIsDropEnabled; } } return flags; |