summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/ModList.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-05-21 20:20:37 +0200
committerPetr Mrázek <peterix@gmail.com>2017-05-21 20:20:37 +0200
commit8bd8be95f027b22a09724a48a3d8d9f2481e7f95 (patch)
tree1b0af581d904e3fbaaf3cf9493f1f8b038e83cec /api/logic/minecraft/ModList.cpp
parent572a6026b57804cd8e9c3a4ccf4dcb1d198b46c7 (diff)
downloadMultiMC-8bd8be95f027b22a09724a48a3d8d9f2481e7f95.tar
MultiMC-8bd8be95f027b22a09724a48a3d8d9f2481e7f95.tar.gz
MultiMC-8bd8be95f027b22a09724a48a3d8d9f2481e7f95.tar.lz
MultiMC-8bd8be95f027b22a09724a48a3d8d9f2481e7f95.tar.xz
MultiMC-8bd8be95f027b22a09724a48a3d8d9f2481e7f95.zip
NOISSUE fix a bunch of compiler warnings
Diffstat (limited to 'api/logic/minecraft/ModList.cpp')
-rw-r--r--api/logic/minecraft/ModList.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/api/logic/minecraft/ModList.cpp b/api/logic/minecraft/ModList.cpp
index 3f28f7d4..02b09eef 100644
--- a/api/logic/minecraft/ModList.cpp
+++ b/api/logic/minecraft/ModList.cpp
@@ -341,7 +341,6 @@ bool ModList::dropMimeData(const QMimeData* data, Qt::DropAction action, int, in
if (data->hasUrls())
{
bool was_watching = is_watching;
- bool added = false;
if (was_watching)
{
stopWatching();
@@ -355,10 +354,8 @@ bool ModList::dropMimeData(const QMimeData* data, Qt::DropAction action, int, in
continue;
}
// TODO: implement not only copy, but also move
- if (installMod(url.toLocalFile()))
- {
- added = true;
- }
+ // FIXME: handle errors here
+ installMod(url.toLocalFile());
}
if (was_watching)
{