Display GUI message after download finishes.
This commit is contained in:
parent
cbcb4e4c87
commit
96ab1a661d
|
@ -55,7 +55,7 @@
|
||||||
#
|
#
|
||||||
# Authors and contributors:
|
# Authors and contributors:
|
||||||
# - Martin Rotter (project leader),
|
# - Martin Rotter (project leader),
|
||||||
# - Elbert Pol (huge OS/2-related contributions)
|
# - Elbert Pol (huge OS/2-related contributions).
|
||||||
#
|
#
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
|
|
|
@ -430,8 +430,12 @@ void DownloadItem::finished() {
|
||||||
m_ui->m_btnOpenFolder->setEnabled(true);
|
m_ui->m_btnOpenFolder->setEnabled(true);
|
||||||
m_output.close();
|
m_output.close();
|
||||||
updateInfoLabel();
|
updateInfoLabel();
|
||||||
|
|
||||||
emit statusChanged();
|
emit statusChanged();
|
||||||
emit downloadFinished();
|
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),
|
DownloadManager::DownloadManager(QWidget *parent) : TabContent(parent), m_ui(new Ui::DownloadManager),
|
||||||
|
|
Loading…
Reference in New Issue