summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-01-18 01:56:16 -0600
committerSilarn <jrim@rimpo.org>2019-01-18 01:56:16 -0600
commit077a050e5954cc21ce40c45dd51973d636b3779b (patch)
tree9e9ceea5e54acf65f560250e1aa842a60bb34b66 /src/downloadlistwidget.cpp
parente35cdd6c89ea27dfb8f3ea1f918192514617a64d (diff)
parent0d04ba18737385395d6ebcdfe49fb31bcb539038 (diff)
Merge remote-tracking branch 'origin/Develop' into archive_conflicts_2
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index f885a5a8..be9d30e2 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -141,7 +141,7 @@ void DownloadListWidget::onDoubleClick(const QModelIndex &index)
QModelIndex sourceIndex = qobject_cast<QSortFilterProxyModel*>(model())->mapToSource(index);
if (m_Manager->getState(sourceIndex.row()) >= DownloadManager::STATE_READY)
emit installDownload(sourceIndex.row());
- else if ((m_Manager->getState(sourceIndex.row()) >= DownloadManager::STATE_PAUSED)
+ else if ((m_Manager->getState(sourceIndex.row()) == DownloadManager::STATE_PAUSED)
|| (m_Manager->getState(sourceIndex.row()) == DownloadManager::STATE_PAUSING))
emit resumeDownload(sourceIndex.row());
}
@@ -161,7 +161,7 @@ void DownloadListWidget::onHeaderCustomContextMenu(const QPoint &point)
checkableAction->setDefaultWidget(checkBox);
menu.addAction(checkableAction);
}
-
+
menu.exec(header()->viewport()->mapToGlobal(point));
// view/hide columns depending on check-state