Исправлен баг выбора comboboxtext

pull/30/head
Igor Belitskiy 3 years ago
parent b42f18f894
commit 8bd881a876

@ -307,7 +307,8 @@ bool MainWindow::focus_ntp(GdkEventFocus* event){
void MainWindow::event_entrycbDhcp(){ void MainWindow::event_entrycbDhcp(){
Glib::ustring str_dhcp = cbDhcp->get_active_text(); Glib::ustring str_dhcp = cbDhcp->get_active_text();
int activ_index = cbDhcp->get_id_column(); int activ_index = cbDhcp->get_active_row_number();
cout << activ_index << endl;
if (str_dhcp.length()!=0){ if (str_dhcp.length()!=0){
if (activ_index==0){ if (activ_index==0){
string cmd = "/usr/bin/ubconfig set network NTPSERVERS=default"; string cmd = "/usr/bin/ubconfig set network NTPSERVERS=default";

Loading…
Cancel
Save