Display GUI message after download finishes.

This commit is contained in:
Martin Rotter 2015-07-01 07:58:26 +02:00
parent cbcb4e4c87
commit 96ab1a661d
2 changed files with 5 additions and 1 deletions

View File

@ -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).
#
#################################################################

View File

@ -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),