mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 23:14:31 +00:00
Drop notification about move storage finished
This commit is contained in:
parent
f1337524f6
commit
f7cae610a4
@ -4929,9 +4929,6 @@ void Session::handleStorageMovedAlert(const lt::storage_moved_alert *p)
|
|||||||
const QString torrentName = (torrent ? torrent->name() : QString {infoHash});
|
const QString torrentName = (torrent ? torrent->name() : QString {infoHash});
|
||||||
LogMsg(tr("\"%1\" is successfully moved to \"%2\".").arg(torrentName, newPath));
|
LogMsg(tr("\"%1\" is successfully moved to \"%2\".").arg(torrentName, newPath));
|
||||||
|
|
||||||
if (torrent)
|
|
||||||
emit torrentStorageMoveFinished(torrent, newPath);
|
|
||||||
|
|
||||||
handleMoveTorrentStorageJobFinished();
|
handleMoveTorrentStorageJobFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -525,7 +525,6 @@ namespace BitTorrent
|
|||||||
void torrentSavePathChanged(TorrentHandle *torrent);
|
void torrentSavePathChanged(TorrentHandle *torrent);
|
||||||
void torrentSavingModeChanged(TorrentHandle *torrent);
|
void torrentSavingModeChanged(TorrentHandle *torrent);
|
||||||
void torrentStorageMoveFailed(TorrentHandle *torrent, const QString &targetPath, const QString &error);
|
void torrentStorageMoveFailed(TorrentHandle *torrent, const QString &targetPath, const QString &error);
|
||||||
void torrentStorageMoveFinished(TorrentHandle *torrent, const QString &newPath);
|
|
||||||
void torrentsUpdated(const QVector<TorrentHandle *> &torrents);
|
void torrentsUpdated(const QVector<TorrentHandle *> &torrents);
|
||||||
void torrentTagAdded(TorrentHandle *torrent, const QString &tag);
|
void torrentTagAdded(TorrentHandle *torrent, const QString &tag);
|
||||||
void torrentTagRemoved(TorrentHandle *torrent, const QString &tag);
|
void torrentTagRemoved(TorrentHandle *torrent, const QString &tag);
|
||||||
|
@ -208,7 +208,6 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::downloadFromUrlFailed, this, &MainWindow::handleDownloadFromUrlFailure);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::downloadFromUrlFailed, this, &MainWindow::handleDownloadFromUrlFailure);
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::speedLimitModeChanged, this, &MainWindow::updateAltSpeedsBtn);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::speedLimitModeChanged, this, &MainWindow::updateAltSpeedsBtn);
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::recursiveTorrentDownloadPossible, this, &MainWindow::askRecursiveTorrentDownloadConfirmation);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::recursiveTorrentDownloadPossible, this, &MainWindow::askRecursiveTorrentDownloadConfirmation);
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentStorageMoveFinished, this, &MainWindow::moveTorrentFinished);
|
|
||||||
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentStorageMoveFailed, this, &MainWindow::moveTorrentFailed);
|
connect(BitTorrent::Session::instance(), &BitTorrent::Session::torrentStorageMoveFailed, this, &MainWindow::moveTorrentFailed);
|
||||||
|
|
||||||
qDebug("create tabWidget");
|
qDebug("create tabWidget");
|
||||||
@ -871,11 +870,6 @@ void MainWindow::finishedTorrent(BitTorrent::TorrentHandle *const torrent) const
|
|||||||
showNotificationBaloon(tr("Download completion"), tr("'%1' has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(torrent->name()));
|
showNotificationBaloon(tr("Download completion"), tr("'%1' has finished downloading.", "e.g: xxx.avi has finished downloading.").arg(torrent->name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::moveTorrentFinished(BitTorrent::TorrentHandle *const torrent, const QString &newPath) const
|
|
||||||
{
|
|
||||||
showNotificationBaloon(tr("Torrent moving finished"), tr("'%1' has finished moving files to '%2'.").arg(torrent->name(), newPath));
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::moveTorrentFailed(BitTorrent::TorrentHandle *const torrent, const QString &targetPath, const QString &error) const
|
void MainWindow::moveTorrentFailed(BitTorrent::TorrentHandle *const torrent, const QString &targetPath, const QString &error) const
|
||||||
{
|
{
|
||||||
showNotificationBaloon(tr("Torrent moving failed"), tr("'%1' has failed moving files to '%2'. Reason: %3").arg(torrent->name(), targetPath, error));
|
showNotificationBaloon(tr("Torrent moving failed"), tr("'%1' has failed moving files to '%2'. Reason: %3").arg(torrent->name(), targetPath, error));
|
||||||
|
@ -132,7 +132,6 @@ private slots:
|
|||||||
void addTorrentFailed(const QString &error) const;
|
void addTorrentFailed(const QString &error) const;
|
||||||
void torrentNew(BitTorrent::TorrentHandle *const torrent) const;
|
void torrentNew(BitTorrent::TorrentHandle *const torrent) const;
|
||||||
void finishedTorrent(BitTorrent::TorrentHandle *const torrent) const;
|
void finishedTorrent(BitTorrent::TorrentHandle *const torrent) const;
|
||||||
void moveTorrentFinished(BitTorrent::TorrentHandle *const torrent, const QString &newPath) const;
|
|
||||||
void moveTorrentFailed(BitTorrent::TorrentHandle *const torrent, const QString &targetPath, const QString &error) const;
|
void moveTorrentFailed(BitTorrent::TorrentHandle *const torrent, const QString &targetPath, const QString &error) const;
|
||||||
void askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHandle *const torrent);
|
void askRecursiveTorrentDownloadConfirmation(BitTorrent::TorrentHandle *const torrent);
|
||||||
void optionsSaved();
|
void optionsSaved();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user