summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MainWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/MainWindow.cpp b/MainWindow.cpp
index 3010f19..23ca61c 100644
--- a/MainWindow.cpp
+++ b/MainWindow.cpp
@@ -458,6 +458,8 @@ MainWindow::on_left_mouse_down(FXObject*, FXSelector, void *ptr)
FXEvent *ev = (FXEvent*)ptr;
lmouse_down = true;
Gate *gate = nullptr;
+ selected_input.gate = nullptr;
+ selected_input.input = -1;
if (selected_gate_type != Gate::NONE)
{
/* add new gate */