summaryrefslogtreecommitdiff
path: root/src/downloadmanager.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-01-13 19:32:54 +0100
committerTannin <devnull@localhost>2014-01-13 19:32:54 +0100
commita083a2d3b6506ab95d3b18ab0ffa7751750e0249 (patch)
tree1bb333c8c8b1df4889f65dc383c25e37c6046289 /src/downloadmanager.cpp
parentdb09b806b9e765b5cb49a9a80f74a4440fff3027 (diff)
- implemented hook for NtQueryDirectoryFile
- saves list is now automatically updated on FS changes - optimization: data tree widget is no longer filled completely at once but one directory at a time - bugfix: pending downloads were not removed from list after a failed nxm request - bugfix: there was still a nmm.nexusmods.com link - bugfix: the text "alpha" in version strings wasn't interpreted correctly
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r--src/downloadmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index f0f4ba2d..fdc825f1 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -429,7 +429,7 @@ void DownloadManager::addNXMDownload(const QString &url)
emit update(-1);
emit downloadAdded();
- m_RequestIDs.insert(m_NexusInterface->requestFileInfo(nxmInfo.modId(), nxmInfo.fileId(), this, QVariant()));
+ m_RequestIDs.insert(m_NexusInterface->requestFileInfo(nxmInfo.modId(), nxmInfo.fileId(), this, nxmInfo.fileId()));
}
@@ -1201,7 +1201,7 @@ void DownloadManager::nxmDownloadURLsAvailable(int modID, int fileID, QVariant u
}
-void DownloadManager::nxmRequestFailed(int modID, QVariant, int requestID, const QString &errorString)
+void DownloadManager::nxmRequestFailed(int modID, QVariant userData, int requestID, const QString &errorString)
{
std::set<int>::iterator idIter = m_RequestIDs.find(requestID);
if (idIter == m_RequestIDs.end()) {
@@ -1225,6 +1225,8 @@ void DownloadManager::nxmRequestFailed(int modID, QVariant, int requestID, const
break;
}
}
+
+ removePending(modID, userData.toInt());
emit showMessage(tr("Failed to request file info from nexus: %1").arg(errorString));
}