MessageBoxRaised::critical(this,tr("I/O Error"),tr("The torrent file '%1' does not exist.").arg(Utils::Fs::toNativePath(m_filePath)));
RaisedMessageBox::critical(this,tr("I/O Error"),tr("The torrent file '%1' does not exist.").arg(Utils::Fs::toNativePath(m_filePath)));
returnfalse;
}
QFileInfofileinfo(m_filePath);
if(!fileinfo.isReadable()){
MessageBoxRaised::critical(this,tr("I/O Error"),tr("The torrent file '%1' cannot be read from the disk. Probably you don't have enough permissions.").arg(Utils::Fs::toNativePath(m_filePath)));
RaisedMessageBox::critical(this,tr("I/O Error"),tr("The torrent file '%1' cannot be read from the disk. Probably you don't have enough permissions.").arg(Utils::Fs::toNativePath(m_filePath)));
MessageBoxRaised::critical(this,tr("Invalid torrent"),tr("Failed to load the torrent: %1.\nError: %2","Don't remove the '\n' characters. They insert a newline.")
RaisedMessageBox::critical(this,tr("Invalid torrent"),tr("Failed to load the torrent: %1.\nError: %2","Don't remove the '\n' characters. They insert a newline.")
MessageBoxRaised::critical(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers weren't merged because it is a private torrent.").arg(torrent->name()),QMessageBox::Ok);
RaisedMessageBox::critical(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers weren't merged because it is a private torrent.").arg(torrent->name()),QMessageBox::Ok);
}
else{
torrent->addTrackers(m_torrentInfo.trackers());
torrent->addUrlSeeds(m_torrentInfo.urlSeeds());
MessageBoxRaised::information(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers were merged.").arg(torrent->name()),QMessageBox::Ok);
RaisedMessageBox::information(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers were merged.").arg(torrent->name()),QMessageBox::Ok);
}
}
else{
MessageBoxRaised::critical(this,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding state."),QMessageBox::Ok);
RaisedMessageBox::critical(this,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding state."),QMessageBox::Ok);
MessageBoxRaised::critical(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers weren't merged because it is a private torrent.").arg(torrent->name()),QMessageBox::Ok);
RaisedMessageBox::critical(this,tr("Already in the download list"),tr("Torrent '%1' is already in the download list. Trackers weren't merged because it is a private torrent.").arg(torrent->name()),QMessageBox::Ok);
}
else{
torrent->addTrackers(magnetUri.trackers());
torrent->addUrlSeeds(magnetUri.urlSeeds());
MessageBoxRaised::information(this,tr("Already in the download list"),tr("Magnet link '%1' is already in the download list. Trackers were merged.").arg(torrent->name()),QMessageBox::Ok);
RaisedMessageBox::information(this,tr("Already in the download list"),tr("Magnet link '%1' is already in the download list. Trackers were merged.").arg(torrent->name()),QMessageBox::Ok);
}
}
else{
MessageBoxRaised::critical(this,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding."),QMessageBox::Ok);
RaisedMessageBox::critical(this,tr("Cannot add torrent"),tr("Cannot add this torrent. Perhaps it is already in adding."),QMessageBox::Ok);
<inputtype="radio"name="shareLimit"id="default"value="default"onchange="shareLimitChanged()"checkedstyle="margin-bottom: 5px;"/>QBT_TR(Use global share limit)QBT_TR[CONTEXT=UpDownRatioDlg]</br>
<inputtype="radio"name="shareLimit"value="none"onchange="shareLimitChanged()"style="margin-bottom: 5px;"/>QBT_TR(Set no share limit)QBT_TR[CONTEXT=UpDownRatioDlg]</br>
<inputtype="radio"name="shareLimit"id="default"value="default"onchange="shareLimitChanged()"checkedstyle="margin-bottom: 5px;"/>QBT_TR(Use global share limit)QBT_TR[CONTEXT=UpDownRatioDialog]</br>
<inputtype="radio"name="shareLimit"value="none"onchange="shareLimitChanged()"style="margin-bottom: 5px;"/>QBT_TR(Set no share limit)QBT_TR[CONTEXT=UpDownRatioDialog]</br>