summaryrefslogtreecommitdiff
path: root/src/downloadlistwidget.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-06-19 01:57:16 +0200
committerAl <gabriel.cortesi@outlook.com>2019-06-19 01:57:16 +0200
commitf883a14823bdc3ed853b23d425f73ff55068ec55 (patch)
tree46afce554fe9eb9fd4e4a9c7cfda6d0d140dc5ea /src/downloadlistwidget.cpp
parent27815282f782d1ca25d173e24befcc5bec024094 (diff)
Improved downloads tab deletion and hiding warnings.
Diffstat (limited to 'src/downloadlistwidget.cpp')
-rw-r--r--src/downloadlistwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/downloadlistwidget.cpp b/src/downloadlistwidget.cpp
index e6029270..be3adc5f 100644
--- a/src/downloadlistwidget.cpp
+++ b/src/downloadlistwidget.cpp
@@ -268,8 +268,8 @@ void DownloadListWidget::issueQueryInfoMd5()
void DownloadListWidget::issueDelete()
{
- if (QMessageBox::question(nullptr, tr("Delete Files?"),
- tr("This will permanently delete the selected download."),
+ if (QMessageBox::warning(nullptr, tr("Delete Files?"),
+ tr("This will permanently delete the selected download.\n\nAre you absolutely sure you want to proceed?"),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(m_ContextRow, true);
}
@@ -323,8 +323,8 @@ void DownloadListWidget::issueResume()
void DownloadListWidget::issueDeleteAll()
{
- if (QMessageBox::question(nullptr, tr("Delete Files?"),
- tr("This will remove all finished downloads from this list and from disk."),
+ if (QMessageBox::warning(nullptr, tr("Delete Files?"),
+ tr("This will remove all finished downloads from this list and from disk.\n\nAre you absolutely sure you want to proceed?"),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-1, true);
}
@@ -332,8 +332,8 @@ void DownloadListWidget::issueDeleteAll()
void DownloadListWidget::issueDeleteCompleted()
{
- if (QMessageBox::question(nullptr, tr("Delete Files?"),
- tr("This will remove all installed downloads from this list and from disk."),
+ if (QMessageBox::warning(nullptr, tr("Delete Files?"),
+ tr("This will remove all installed downloads from this list and from disk.\n\nAre you absolutely sure you want to proceed?"),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-2, true);
}
@@ -341,8 +341,8 @@ void DownloadListWidget::issueDeleteCompleted()
void DownloadListWidget::issueDeleteUninstalled()
{
- if (QMessageBox::question(nullptr, tr("Delete Files?"),
- tr("This will remove all uninstalled downloads from this list and from disk."),
+ if (QMessageBox::warning(nullptr, tr("Delete Files?"),
+ tr("This will remove all uninstalled downloads from this list and from disk.\n\nAre you absolutely sure you want to proceed?"),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-3, true);
}
@@ -350,7 +350,7 @@ void DownloadListWidget::issueDeleteUninstalled()
void DownloadListWidget::issueRemoveFromViewAll()
{
- if (QMessageBox::question(nullptr, tr("Are you sure?"),
+ if (QMessageBox::question(nullptr, tr("Hide Files?"),
tr("This will remove all finished downloads from this list (but NOT from disk)."),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-1, false);
@@ -359,7 +359,7 @@ void DownloadListWidget::issueRemoveFromViewAll()
void DownloadListWidget::issueRemoveFromViewCompleted()
{
- if (QMessageBox::question(nullptr, tr("Are you sure?"),
+ if (QMessageBox::question(nullptr, tr("Hide Files?"),
tr("This will remove all installed downloads from this list (but NOT from disk)."),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-2, false);
@@ -368,7 +368,7 @@ void DownloadListWidget::issueRemoveFromViewCompleted()
void DownloadListWidget::issueRemoveFromViewUninstalled()
{
- if (QMessageBox::question(nullptr, tr("Are you sure?"),
+ if (QMessageBox::question(nullptr, tr("Hide Files?"),
tr("This will remove all uninstalled downloads from this list (but NOT from disk)."),
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
emit removeDownload(-3, false);