mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
When duplicate torrent is added set metadata to existing one
PR #17454. Closes #907.
This commit is contained in:
parent
748226be29
commit
1c0479a795
5 changed files with 26 additions and 0 deletions
|
@ -435,6 +435,9 @@ bool AddNewTorrentDialog::loadTorrentImpl()
|
|||
BitTorrent::Torrent *const torrent = BitTorrent::Session::instance()->findTorrent(torrentID);
|
||||
if (torrent)
|
||||
{
|
||||
// Trying to set metadata to existing torrent in case if it has none
|
||||
torrent->setMetadata(m_torrentInfo);
|
||||
|
||||
if (torrent->isPrivate() || m_torrentInfo.isPrivate())
|
||||
{
|
||||
RaisedMessageBox::warning(this, tr("Torrent is already present"), tr("Torrent '%1' is already in the transfer list. Trackers cannot be merged because it is a private torrent.").arg(torrent->name()), QMessageBox::Ok);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue