* edit WiFi and ProfileList calls

* optimization of WifiMenu
* small refactoring
This commit is contained in:
arcan1s
2015-03-07 17:12:33 +03:00
parent 9993fee336
commit 2cf876cf32
26 changed files with 207 additions and 153 deletions

View File

@ -59,11 +59,9 @@ QMap<QString, QString> TuntapWidget::getSettings()
int TuntapWidget::isOk()
{
// empty username
if (ui->lineEdit_user->text().isEmpty())
return 1;
if (ui->lineEdit_user->text().isEmpty()) return 1;
// empty group name
if (ui->lineEdit_group->text().isEmpty())
return 2;
if (ui->lineEdit_group->text().isEmpty()) return 2;
// all fine
return 0;
}