summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-03-07 16:32:17 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-03-07 16:32:17 -0600
commit70bcd97bd23756a92507006e6202eee7af902cd3 (patch)
treefbd99db3468701539741e2817885042006639fa4 /src/downloadlistwidget.cpp
parent2eecead2362d9429c6f924cfa08d1f645e35b7d3 (diff)
Use MD5 when querying info before bothering the user
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index be9d30e2..f0c4da1a 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -199,8 +199,8 @@ void DownloadListWidget::onCustomContextMenu(const QPoint &point)
if (state >= DownloadManager::STATE_READY) {
menu.addAction(tr("Install"), this, SLOT(issueInstall()));
- if (m_Manager->isInfoIncomplete(m_ContextRow))
- menu.addAction(tr("Query Info"), this, SLOT(issueQueryInfo()));
+ if (m_Manager->isInfoIncomplete(m_ContextRow))
+ menu.addAction(tr("Query Info"), this, SLOT(issueQueryInfoMd5()));
else
menu.addAction(tr("Visit on Nexus"), this, SLOT(issueVisitOnNexus()));
menu.addAction(tr("Open File"), this, SLOT(issueOpenFile()));
@@ -252,6 +252,11 @@ void DownloadListWidget::issueQueryInfo()
emit queryInfo(m_ContextRow);
}
+void DownloadListWidget::issueQueryInfoMd5()
+{
+ emit queryInfoMd5(m_ContextRow);
+}
+
void DownloadListWidget::issueDelete()
{
if (QMessageBox::question(nullptr, tr("Delete Files?"),