Finish remove user implementation
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user