mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-19 00:29:58 +00:00
* edit WiFi and ProfileList calls
* optimization of WifiMenu * small refactoring
This commit is contained in:
@ -118,12 +118,10 @@ QMap<QString, QString> MobileWidget::getSettings()
|
||||
int MobileWidget::isOk()
|
||||
{
|
||||
// APN is not set
|
||||
if (ui->lineEdit_apn->text().isEmpty())
|
||||
return 1;
|
||||
if (ui->lineEdit_apn->text().isEmpty()) return 1;
|
||||
// config file doesn't exist
|
||||
if (!ui->lineEdit_options->text().isEmpty())
|
||||
if (!QFile(ui->lineEdit_options->text()).exists())
|
||||
return 2;
|
||||
if (!QFile(ui->lineEdit_options->text()).exists()) return 2;
|
||||
// all fine
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user