diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-05-21 20:20:37 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-05-21 20:20:37 +0200 |
commit | 8bd8be95f027b22a09724a48a3d8d9f2481e7f95 (patch) | |
tree | 1b0af581d904e3fbaaf3cf9493f1f8b038e83cec /api/logic/minecraft/ModList.cpp | |
parent | 572a6026b57804cd8e9c3a4ccf4dcb1d198b46c7 (diff) | |
download | MultiMC-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.cpp | 7 |
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) { |