mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 17:12:31 -06:00
Convert the names used in ui and c++ files from snake_case to camelCase
This commit is contained in:
committed by
sledgehammer999
parent
7e4db8fafd
commit
976e2450ec
@@ -55,13 +55,13 @@ QList<BitTorrent::PeerAddress> PeersAdditionDialog::askForPeers(QWidget *parent)
|
||||
|
||||
void PeersAdditionDialog::validateInput()
|
||||
{
|
||||
if (m_ui->peers_txt->toPlainText().trimmed().isEmpty()) {
|
||||
if (m_ui->textEditPeers->toPlainText().trimmed().isEmpty()) {
|
||||
QMessageBox::warning(this, tr("No peer entered"),
|
||||
tr("Please type at least one peer."),
|
||||
QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
foreach (const QString &peer, m_ui->peers_txt->toPlainText().trimmed().split('\n')) {
|
||||
foreach (const QString &peer, m_ui->textEditPeers->toPlainText().trimmed().split('\n')) {
|
||||
BitTorrent::PeerAddress addr = parsePeer(peer);
|
||||
if (!addr.ip.isNull()) {
|
||||
m_peersList.append(addr);
|
||||
|
||||
Reference in New Issue
Block a user