Display GUI message after download finishes.
This commit is contained in:
parent
cbcb4e4c87
commit
96ab1a661d
|
@ -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).
|
||||
#
|
||||
#################################################################
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue