X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5042b6492969385725852d3cf90959abb52a7398..950f83d0e71dc886fcf5be9889796c5b2a85fa4c:/Constructor/src/pump.cpp diff --git a/Constructor/src/pump.cpp b/Constructor/src/pump.cpp index 7526f6b..9d2a95a 100644 --- a/Constructor/src/pump.cpp +++ b/Constructor/src/pump.cpp @@ -48,7 +48,7 @@ bool Pump::on_button_press_event(GdkEventButton *event) tmp_line.store = this; workplace->lista_lineas_in.push_back(tmp_line); workplace->queue_draw(); - } else { + } else if (detect_click_position(event->x, event->y) == OUT) { tmp_line.logic = workplace->get_logic_item(CItem::gate_id); tmp_line.store = this; workplace->lista_lineas_out.push_back(tmp_line); @@ -91,6 +91,7 @@ bool Pump::on_button_press_event(GdkEventButton *event) pump_pty_wnd->txt_pump_name->set_text( name ); pump_pty_wnd->show(); } + CItem::logic_connect =false; workplace->queue_draw(); return true; }