]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/src/constructor.cpp
-cambios en la implementacion de algunos items, get_connector_type..
[z.facultad/75.42/plaqui.git] / Constructor / src / constructor.cpp
index 21bdbca48bb699f7c5b063756d4873db15ef337f..e6f413e9fcf647ea12c36ce113be02571f7d25b4 100644 (file)
@@ -219,6 +219,10 @@ void Constructor::on_edit_menu_delete_all()
                i=lista_logic_Items.begin();
        }
        id = 0;
+       list_pointed.clear();
+       list_pointed.push_back(" ");
+       combo_entry->set_popdown_strings(list_pointed);
+       combo_entry->get_entry()->set_text("");
 }
 
 void Constructor::on_chk_btn_logica_clicked()
@@ -343,21 +347,7 @@ void Constructor::on_quick_btn_new_clicked()
 
 void Constructor::on_quick_btn_delete_all_clicked()
 {
-       std::list<CItem *>::iterator i = listaItems.begin();
-       while ( i != listaItems.end() ){
-               CItem *temp = *i;
-               listaItems.erase(i);
-               delete temp;
-               i = listaItems.begin();
-       }
-       i = lista_logic_Items.begin();
-       while ( i != lista_logic_Items.end() ){
-               CItem *temp2 = *i;
-               lista_logic_Items.erase(i);
-               delete temp2;
-               i = lista_logic_Items.begin();
-       }
-       id = 0;
+       on_edit_menu_delete_all();
 }      
 
 void Constructor::on_btn_find_clicked()