Launch check removal at action cancelation fix

pull/46/head
parent 06335b70b8
commit 37c41b4c0a

@ -472,11 +472,10 @@ void on_system_launch_clicked(GtkWidget *self, char *path, main_window *widgets)
config_str result = yon_config_load(service_check_active_command(service_name),&size);
yon_char_remove_last_symbol(result[0],'\n');
if (size>0&&!strcmp(result[0],"active")){
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
int responce = yon_confirmation_dialog_call(widgets->Window,data);
if (responce == GTK_RESPONSE_ACCEPT){
gtk_list_store_set(GTK_LIST_STORE(model),&iter,4,0,-1);
} else {
gtk_list_store_set(GTK_LIST_STORE(model),&iter,4,0,-1);
}
}
yon_char_parsed_free(result,size);

Loading…
Cancel
Save