From 133c072eb7f63e807f2a211804537f59d1f8b0ed Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Thu, 21 Sep 2023 00:08:58 -0500 Subject: Rework download category parsing - Bypasses issue where hidden downloads are not accessible - getCategoryID no longer necessary --- src/downloadmanager.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/downloadmanager.cpp') 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())) { -- cgit v1.3.1