NOISSUE fix a bunch of compiler warnings

This commit is contained in:
Petr Mrázek
2017-05-21 20:20:37 +02:00
parent 572a6026b5
commit 8bd8be95f0
10 changed files with 22 additions and 27 deletions

View File

@ -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)
{