diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 18:31:23 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | 313589cf10640ae06cd7873989b5840f7c476e50 (patch) | |
| tree | 838368ebd6b32adf5682a9f47945dd34a88ec799 /src | |
| parent | 6443fa4c0e027faced0af9539533e1c404badf3b (diff) | |
Fix canDrop in sort proxy.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modlistsortproxy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index d1ca6d0c..f9a32b26 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -607,12 +607,12 @@ bool ModListSortProxy::filterAcceptsRow(int source_row, const QModelIndex &paren bool ModListSortProxy::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const
{
- if (!data->hasUrls() && sortColumn() != ModList::COL_PRIORITY) {
+ auto dropInfo = m_Organizer->modList()->dropInfo(data);
+
+ if (!dropInfo.isLocalFileDrop() && sortColumn() != ModList::COL_PRIORITY) {
return false;
}
- auto dropInfo = m_Organizer->modList()->dropInfo(data);
-
// disable drop install with group proxy, except the one for collapsible separator
// - it would be nice to be able to "install to category" or something like that but
// it's a bit more complicated since the drop position is based on the category, so
|
