|
|
|
@ -1177,8 +1177,12 @@ void MainWindow::entry_dhcp_mess(string cmd_get_dhcp, string cmd_default_get_dhc
|
|
|
|
warning_info-= 1;
|
|
|
|
warning_info-= 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (str_dhcp == "stop") {
|
|
|
|
else {
|
|
|
|
this->write_config("stop", "dhcp");
|
|
|
|
|
|
|
|
cbDhcp->set_active(3);
|
|
|
|
|
|
|
|
txtNtpServer->set_text("");
|
|
|
|
|
|
|
|
txtNtpServer->set_sensitive(false);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
// btnUpdateDateTime->set_sensitive(false);
|
|
|
|
// btnUpdateDateTime->set_sensitive(false);
|
|
|
|
if (str_dhcp == "") {
|
|
|
|
if (str_dhcp == "") {
|
|
|
|
this->write_config("", "dhcp");
|
|
|
|
this->write_config("", "dhcp");
|
|
|
|
@ -1203,7 +1207,7 @@ void MainWindow::entry_dhcp_mess(string cmd_get_dhcp, string cmd_default_get_dhc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
this->write_config("", "dhcp");
|
|
|
|
this->write_config("", "dhcp");
|
|
|
|
cbDhcp->set_active(3);
|
|
|
|
cbDhcp->set_active(0);
|
|
|
|
txtNtpServer->set_text("");
|
|
|
|
txtNtpServer->set_text("");
|
|
|
|
txtNtpServer->set_sensitive(false);
|
|
|
|
txtNtpServer->set_sensitive(false);
|
|
|
|
// btnUpdateDateTime->set_sensitive(true);
|
|
|
|
// btnUpdateDateTime->set_sensitive(true);
|
|
|
|
|