mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Coding style clean up
This commit is contained in:
parent
9acac03f14
commit
a8a7b61ea9
77 changed files with 2194 additions and 2194 deletions
|
|
@ -84,7 +84,7 @@ public slots:
|
|||
// Super seeding
|
||||
pref.enableSuperSeeding(cb_super_seeding.isChecked());
|
||||
// Network interface
|
||||
if(combo_iface.currentIndex() == 0) {
|
||||
if (combo_iface.currentIndex() == 0) {
|
||||
// All interfaces (default)
|
||||
pref.setNetworkInterface(QString::null);
|
||||
} else {
|
||||
|
|
@ -92,7 +92,7 @@ public slots:
|
|||
}
|
||||
// Network address
|
||||
QHostAddress addr(txt_network_address.text().trimmed());
|
||||
if(addr.isNull())
|
||||
if (addr.isNull())
|
||||
pref.setNetworkAddress("");
|
||||
else
|
||||
pref.setNetworkAddress(addr.toString());
|
||||
|
|
@ -199,10 +199,10 @@ private slots:
|
|||
combo_iface.addItem(tr("Any interface", "i.e. Any network interface"));
|
||||
const QString current_iface = pref.getNetworkInterface();
|
||||
int i = 1;
|
||||
foreach(const QNetworkInterface& iface, QNetworkInterface::allInterfaces()) {
|
||||
if(iface.flags() & QNetworkInterface::IsLoopBack) continue;
|
||||
foreach (const QNetworkInterface& iface, QNetworkInterface::allInterfaces()) {
|
||||
if (iface.flags() & QNetworkInterface::IsLoopBack) continue;
|
||||
combo_iface.addItem(iface.name());
|
||||
if(!current_iface.isEmpty() && iface.name() == current_iface)
|
||||
if (!current_iface.isEmpty() && iface.name() == current_iface)
|
||||
combo_iface.setCurrentIndex(i);
|
||||
++i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue