X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5042b6492969385725852d3cf90959abb52a7398..fc802b7aea75e90b19cd22d3e5e752620a416af8:/Constructor/src/not.cpp?ds=sidebyside diff --git a/Constructor/src/not.cpp b/Constructor/src/not.cpp index dcf95c2..2a4b277 100644 --- a/Constructor/src/not.cpp +++ b/Constructor/src/not.cpp @@ -20,9 +20,10 @@ Not::~Not() bool Not::on_button_press_event(GdkEventButton *event) { + if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) { - if (CItem::logic_connect) - CItem::gate_id = ID; + CItem::logic_connect = true; + CItem::gate_id = ID; combo_entry->set_text(name); WorkPlace::pointed = ID; }