MessageBoxRaised::critical(0,tr("Already in download list"),tr("Torrent is already in download list. Trackers weren't merged because it is a private torrent."),QMessageBox::Ok);
}
else{
torrent->addTrackers(m_torrentInfo.trackers());
torrent->addTrackers(m_torrentInfo.trackers());
torrent->addUrlSeeds(m_torrentInfo.urlSeeds());
torrent->addUrlSeeds(m_torrentInfo.urlSeeds());
MessageBoxRaised::information(0,tr("Already in download list"),tr("Torrent is already in download list. Trackers were merged."),QMessageBox::Ok);
MessageBoxRaised::information(0,tr("Already in download list"),tr("Torrent is already in download list. Trackers were merged."),QMessageBox::Ok);
}
}
}
else{
else{
MessageBoxRaised::critical(0,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding state."),QMessageBox::Ok);
MessageBoxRaised::critical(0,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding state."),QMessageBox::Ok);
MessageBoxRaised::critical(0,tr("Already in download list"),tr("Torrent is already in download list. Trackers weren't merged because it is a private torrent."),QMessageBox::Ok);
}
else{
torrent->addTrackers(magnetUri.trackers());
torrent->addTrackers(magnetUri.trackers());
torrent->addUrlSeeds(magnetUri.urlSeeds());
torrent->addUrlSeeds(magnetUri.urlSeeds());
MessageBoxRaised::information(0,tr("Already in download list"),tr("Magnet link is already in download list. Trackers were merged."),QMessageBox::Ok);
MessageBoxRaised::information(0,tr("Already in download list"),tr("Magnet link is already in download list. Trackers were merged."),QMessageBox::Ok);
}
}
}
else{
else{
MessageBoxRaised::critical(0,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding."),QMessageBox::Ok);
MessageBoxRaised::critical(0,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding."),QMessageBox::Ok);