Finish remove user implementation

This commit is contained in:
2020-05-26 01:37:11 +02:00
parent 03f2c31989
commit c4e2ec96dd
4 changed files with 13 additions and 3 deletions

View File

@@ -38,8 +38,12 @@ void controller_user_info::on_button_clicked_add(){
void controller_user_info::on_button_clicked_remove(){
Gtk::TreeModel::Row row = *this->view->tree.get_selection()->get_selected();
//row.get_value(this->view->m_Columns.r_user);
std::cout << row.get_value(this->view->m_Columns.r_user) << std::endl;
std::string name=row.get_value(this->view->m_Columns.r_user);
if(name.find("Gtk-CRITICAL **:")==std::string::npos){
this->sesion->remove_user(name);
}
this->view->restart_table();
this->load_info();
}
std::string controller_user_info::get_first(std::string &info){