diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 1abc5f3..8b452e7 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -75,6 +75,10 @@ void MainWindow::settings() { this->download_local_cfg(); } else { + lblHW->set_sensitive(false); + cbHw->set_sensitive(false); + boxButton->set_sensitive(false); + boxSave->set_sensitive(false); btnDownload->set_sensitive(false); numTimeHrs->set_sensitive(false); numTimeMin->set_sensitive(false); @@ -398,23 +402,23 @@ void MainWindow::info_warning_error(int mess) { warning_info = 0; string mess_error = ""; if (mess == 0) { - mess_error = _("Local configuration reading error") + cmd_error; + mess_error = string(_("Local configuration reading error")) + " " + cmd_error; lblWarning->set_text(mess_error); } else if (mess == 1) { - mess_error = _("Global configuration read error") + cmd_error; + mess_error = string(_("Global configuration read error")) + " " + cmd_error; lblWarning->set_text(mess_error); } else if (mess == 2) { - mess_error = _("Local configuration write error") + cmd_error; + mess_error = string(_("Local configuration write error")) + " " + cmd_error; lblWarning->set_text(mess_error); } else if (mess == 3) { - mess_error = _("Global configuration write error") + cmd_error; + mess_error = string(_("Global configuration write error")) + " " + cmd_error; lblWarning->set_text(mess_error); } else if (mess == 4) { - mess_error = _("Error saved local and global configuration") + cmd_error; + mess_error = string(_("Error saved local and global configuration")) + " " + cmd_error; lblWarning->set_text(mess_error); } cmd_error = ""; @@ -465,10 +469,10 @@ void MainWindow::entry_hardware_clock_default(string &cmd_default) { int error = warning_info; struct Result obj_result_default = this->wrapper_call(cmd_default); if (obj_result_default.error == 0) { - if (obj_result_default.response.find("localtime") !=string::npos) { + if (obj_result_default.response.find("localtime") != string::npos) { cbHw->set_active(0); } - else if (obj_result_default.response.find("utc") !=string::npos) { + else if (obj_result_default.response.find("utc") != string::npos) { cbHw->set_active(1); } @@ -487,10 +491,10 @@ void MainWindow::entry_hardware_clock(string &cmd, string &cmd_default) { int error = warning_info; struct Result obj_result = this->wrapper_call(cmd); if (obj_result.error == 0) { - if (obj_result.response.find("localtime") !=string::npos) { + if (obj_result.response.find("localtime") != string::npos) { cbHw->set_active(0); } - else if (obj_result.response.find("utc") !=string::npos) { + else if (obj_result.response.find("utc") != string::npos) { cbHw->set_active(1); } else {