X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/4675818d2893c57a409498cd39dba6f9c18b6fe9..789188ab0bf658fdf35c99e7bd2cfabab41091f2:/Constructor/constructor.cpp diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index aa162e9..4b26ee4 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -272,11 +272,6 @@ void Constructor::on_not_drag_begin(const Glib::RefPtr& contex void Constructor::on_item_drag_begin(const Glib::RefPtr& context, CItem *item) { context->set_icon(item->get_image(), 5, 5); - std::list::iterator i = listaItems.begin(); - while ( i != listaItems.end() ){ - (*i)->set_default_connector(); - i++; - } } void Constructor::on_item_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) @@ -382,6 +377,13 @@ void Constructor::on_item_drop_drag_received(const Glib::RefPtr::iterator i = listaItems.begin(); + while ( i != listaItems.end() ){ + (*i)->set_default_connector(); + (*i)->is_connected = false; + i++; + } + + i = listaItems.begin(); if ( !listaItems.empty() ) { while ( i != listaItems.end() ) { CItem *temp = *i;