diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-21 00:08:58 -0500 |
|---|---|---|
| committer | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-21 17:35:08 -0500 |
| commit | 133c072eb7f63e807f2a211804537f59d1f8b0ed (patch) | |
| tree | 423aa6c4a25f321bc3f4842c25952b1c11b89838 /src/downloadmanager.cpp | |
| parent | 639fc787bfbcc9d63765280c1c4e7e80e2bd1b34 (diff) | |
Rework download category parsing
- Bypasses issue where hidden downloads are not accessible
- getCategoryID no longer necessary
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 3e5303c6..3c9e776e 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -1404,14 +1404,6 @@ int DownloadManager::getModID(int index) const return m_ActiveDownloads.at(index)->m_FileInfo->modID; } -int DownloadManager::getCategoryID(int index) const -{ - if ((index < 0) || (index >= m_ActiveDownloads.size())) { - throw MyException(tr("mod id: invalid download index %1").arg(index)); - } - return m_ActiveDownloads.at(index)->m_FileInfo->categoryID; -} - QString DownloadManager::getDisplayGameName(int index) const { if ((index < 0) || (index >= m_ActiveDownloads.size())) { |
