From 63b21894160bf10675b36a4519afccdef6567900 Mon Sep 17 00:00:00 2001 From: Krzysztof Starecki Date: Tue, 1 Jan 2019 15:29:50 +0100 Subject: Remove unused import, fix accidental indent --- src/downloadlist.h | 1 - src/downloadmanager.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/downloadlist.h b/src/downloadlist.h index 2c32a397..bf0cdc37 100644 --- a/src/downloadlist.h +++ b/src/downloadlist.h @@ -21,7 +21,6 @@ along with Mod Organizer. If not, see . #define DOWNLOADLIST_H #include -#include class DownloadManager; diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 8c4e0b56..2784a8ce 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -711,7 +711,7 @@ void DownloadManager::removeDownload(int index, bool deleteFile) removeFile(index, deleteFile); delete *iter; iter = m_ActiveDownloads.erase(iter); - } else { + } else { ++iter; ++index; } -- cgit v1.3.1