From 96ab1a661d9dc68de1d01e1bb3c475e80fc19574 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 1 Jul 2015 07:58:26 +0200 Subject: [PATCH] Display GUI message after download finishes. --- CMakeLists.txt | 2 +- src/network-web/downloadmanager.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec3a5db8a..be7f5c3ec 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ # # Authors and contributors: # - Martin Rotter (project leader), -# - Elbert Pol (huge OS/2-related contributions) +# - Elbert Pol (huge OS/2-related contributions). # ################################################################# diff --git a/src/network-web/downloadmanager.cpp b/src/network-web/downloadmanager.cpp index a09df9a17..35cc7accb 100755 --- a/src/network-web/downloadmanager.cpp +++ b/src/network-web/downloadmanager.cpp @@ -430,8 +430,12 @@ void DownloadItem::finished() { m_ui->m_btnOpenFolder->setEnabled(true); m_output.close(); updateInfoLabel(); + emit statusChanged(); emit downloadFinished(); + + qApp->showGuiMessage(tr("Download finished"), tr("File '%1' is downloaded.\nClick here to open parent directory.").arg(QDir::toNativeSeparators(m_output.fileName())), + QSystemTrayIcon::Information, 0, false, QIcon(), this, SLOT(openFolder())); } DownloadManager::DownloadManager(QWidget *parent) : TabContent(parent), m_ui(new Ui::DownloadManager),