mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 17:56:50 +03:00
- Doesn't display that a torrent has finished on start when it finished during last session
This commit is contained in:
parent
f81481c50f
commit
3dbb958bde
1 changed files with 1 additions and 1 deletions
|
@ -1248,11 +1248,11 @@ void GUI::propertiesSelection(){
|
||||||
void GUI::finishedTorrent(torrent_handle& h){
|
void GUI::finishedTorrent(torrent_handle& h){
|
||||||
QSettings settings("qBittorrent", "qBittorrent");
|
QSettings settings("qBittorrent", "qBittorrent");
|
||||||
QString fileName = QString(h.name().c_str());
|
QString fileName = QString(h.name().c_str());
|
||||||
setInfoBar(tr("%1 has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(fileName));
|
|
||||||
int useOSD = settings.value("Options/OSDEnabled", 1).toInt();
|
int useOSD = settings.value("Options/OSDEnabled", 1).toInt();
|
||||||
// Add it to finished tab
|
// Add it to finished tab
|
||||||
QString hash = QString(misc::toString(h.info_hash()).c_str());
|
QString hash = QString(misc::toString(h.info_hash()).c_str());
|
||||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished")) return;
|
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished")) return;
|
||||||
|
setInfoBar(tr("%1 has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(fileName));
|
||||||
finishedTorrentTab->addFinishedSHA(hash);
|
finishedTorrentTab->addFinishedSHA(hash);
|
||||||
QList<QStandardItem *> items = DLListModel->findItems(hash, Qt::MatchExactly, HASH );
|
QList<QStandardItem *> items = DLListModel->findItems(hash, Qt::MatchExactly, HASH );
|
||||||
if(items.size() != 1){
|
if(items.size() != 1){
|
||||||
|
|
Loading…
Reference in a new issue