- Glib::ustring pointed = combo_entry->get_text();
- while ( i != listaItems.end() ){
- CItem *temp = *i;
- if ( temp->get_name() == pointed ){
- workplace->delete_item(temp->get_id());
- break;
- }
- i++;
+ while ( i != listaItems.end() ) {
+ (*i)->workplace->delete_item((*i)->get_id());
+ i = listaItems.begin();
+ }
+ i = lista_logic_Items.begin();
+ while ( i != lista_logic_Items.end() ) {
+ (*i)->workplace->delete_item((*i)->get_id());
+ i=lista_logic_Items.begin();