From 08ffc71b3b219c169af385ed9c47fae6535dcd67 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Wed, 24 Jun 2020 15:25:12 +0930 Subject: functionality: added ability to delete links. click on the input of the link you wish to delete and press the delete key. --- Gate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Gate.cpp') diff --git a/Gate.cpp b/Gate.cpp index a0ac6ea..70e55fe 100644 --- a/Gate.cpp +++ b/Gate.cpp @@ -40,7 +40,9 @@ Gate::remove_output_gate_id(int id) { if (id == (*g)) { + printf("%id = %d\n", id, *g); output_gate_ids.erase(output_gate_ids.begin() + pos); + break; } pos++; } @@ -63,7 +65,7 @@ void Gate::update_state() { this->output_state = true; } - else if (input_gate1) + else { this->output_state = false; } -- cgit v1.2.3