Merge pull request #619 from sledgehammer999/notification_on_finish

Actually show the tray notification when a torrent finishes downloading.
This commit is contained in:
sledgehammer999 2013-07-01 14:28:02 -07:00
commit bc605fe09e

View File

@ -528,7 +528,7 @@ void MainWindow::balloonClicked() {
// called when a torrent has finished // called when a torrent has finished
void MainWindow::finishedTorrent(const QTorrentHandle& h) const { void MainWindow::finishedTorrent(const QTorrentHandle& h) const {
if (!TorrentPersistentData::isSeed(h.hash())) if (TorrentPersistentData::isSeed(h.hash()))
showNotificationBaloon(tr("Download completion"), tr("%1 has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(h.name())); showNotificationBaloon(tr("Download completion"), tr("%1 has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(h.name()));
} }