diff options
| author | Tannin <devnull@localhost> | 2013-02-19 21:33:58 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-02-19 21:33:58 +0100 |
| commit | cb297d20b616e49803470396c21dd5747370cfaf (patch) | |
| tree | 19d2fe4119f65d23ba7e833a98bebd5cf854fe4d /src/downloadmanager.cpp | |
| parent | efe42430777fe187c042d30e3496448fd12c9a82 (diff) | |
- proper detection of user-preferred language
- resume and removal of failed download fixed
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index ab1f2613..2700e598 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -200,6 +200,7 @@ bool DownloadManager::addDownload(QNetworkReply *reply, const QString &fileName, newDownload->m_ModID = modID; newDownload->m_FileID = fileID; newDownload->m_NexusInfo = nexusInfo; + newDownload->m_State = STATE_STARTED; QString baseName = fileName; @@ -286,7 +287,7 @@ void DownloadManager::removeFile(int index, bool deleteFile) } if (download->m_State == STATE_PAUSED) { - filePath.append(UNFINISHED); + filePath = download->m_Output.fileName(); } if (deleteFile) { @@ -318,6 +319,7 @@ private: DownloadManager *m_Manager; }; + bool DownloadManager::ByName(int LHS, int RHS) { return m_ActiveDownloads[LHS]->m_FileName < m_ActiveDownloads[RHS]->m_FileName; |
