|
|
|
@ -438,13 +438,10 @@ void MainWindow::wrapper_system(string cmd){
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::hardware_clock_global(string &local, string &utc){
|
|
|
|
void MainWindow::hardware_clock_global(string &local, string &utc){
|
|
|
|
int index = cbHw->get_active_row_number();
|
|
|
|
int index = cbHw->get_active_row_number();
|
|
|
|
cout << index << endl;
|
|
|
|
|
|
|
|
if (index == 0){
|
|
|
|
if (index == 0){
|
|
|
|
cout << local << endl;
|
|
|
|
|
|
|
|
wrapper_system(local);
|
|
|
|
wrapper_system(local);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (index == 1){
|
|
|
|
else if (index == 1){
|
|
|
|
cout << utc << endl;
|
|
|
|
|
|
|
|
wrapper_system(utc);
|
|
|
|
wrapper_system(utc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|