mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Replaced 'correct' by 'valid' everywhere
This commit is contained in:
parent
affafd5dbf
commit
dfb7717995
42 changed files with 314 additions and 86 deletions
|
@ -874,13 +874,13 @@ void options_imp::on_addFilterRange_clicked(){
|
|||
QStringList IP1 = startIP.split('.');
|
||||
// Check IP
|
||||
if (!ok || startIP.isEmpty() || IP1.size() != 4){
|
||||
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect."));
|
||||
QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
|
||||
return;
|
||||
}
|
||||
for(int i=0; i<4; ++i){
|
||||
QString part = IP1.at(i).trimmed();
|
||||
if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){
|
||||
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect."));
|
||||
QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -891,13 +891,13 @@ void options_imp::on_addFilterRange_clicked(){
|
|||
QStringList IP2 = lastIP.split('.');
|
||||
// check IP
|
||||
if (!ok || lastIP.isEmpty() || IP2.size() != 4){
|
||||
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect."));
|
||||
QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
|
||||
return;
|
||||
}
|
||||
for(int i=0; i<4; ++i){
|
||||
QString part = IP2.at(i).trimmed();
|
||||
if(part.isEmpty() || part.toInt() < 0 || part.toInt() > 255){
|
||||
QMessageBox::critical(0, tr("Incorrect IP"), tr("This IP is incorrect."));
|
||||
QMessageBox::critical(0, tr("Invalid IP"), tr("This IP is invalid."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue