diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-30 19:11:48 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | 89ff59da4613f06a05a633b4aa4387470831ce94 (patch) | |
| tree | 2217435c5c5b575ab81013d9113d673e2409bb4a /src/downloadlist.cpp | |
| parent | 313589cf10640ae06cd7873989b5840f7c476e50 (diff) | |
Add message for invalid drag. Split & clean code.
Diffstat (limited to 'src/downloadlist.cpp')
| -rw-r--r-- | src/downloadlist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp index 78e5fd24..93f8538c 100644 --- a/src/downloadlist.cpp +++ b/src/downloadlist.cpp @@ -19,6 +19,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "downloadlist.h"
#include "downloadmanager.h"
+#include "modlistdropinfo.h"
#include <utility.h>
#include <log.h>
#include <QEvent>
@@ -98,7 +99,7 @@ Qt::ItemFlags DownloadList::flags(const QModelIndex& idx) const QMimeData* DownloadList::mimeData(const QModelIndexList& indexes) const
{
QMimeData* result = QAbstractItemModel::mimeData(indexes);
- result->setData("text/plain", "archive");
+ result->setData("text/plain", ModListDropInfo::DOWNLOAD_TEXT);
return result;
}
|
