summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-30 19:50:53 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-30 19:50:53 +0930
commitcb1600e934409ee9f9771f01a893962b3e96d0e3 (patch)
tree1adbdbba405237bea5ec71e658d73f05246a2a18
parent93f4f323e5374e65a9cadd5903fa020188e59ee1 (diff)
downloadfoxlogicgates-cb1600e934409ee9f9771f01a893962b3e96d0e3.tar.gz
foxlogicgates-cb1600e934409ee9f9771f01a893962b3e96d0e3.zip
continue work implementing binary display
-rw-r--r--BinaryDisplay.cpp4
-rw-r--r--MainWindow.cpp5
2 files changed, 7 insertions, 2 deletions
diff --git a/BinaryDisplay.cpp b/BinaryDisplay.cpp
index 8526511..f58491c 100644
--- a/BinaryDisplay.cpp
+++ b/BinaryDisplay.cpp
@@ -43,8 +43,8 @@ BinaryDisplay::remove_input(int id)
input2 = nullptr;
if (input3 && input3->get_id() == id)
input3 = nullptr;
- if (input4 && input5->get_id() == id)
- input5 = nullptr;
+ if (input4 && input4->get_id() == id)
+ input4 = nullptr;
if (input5 && input5->get_id() == id)
input5 = nullptr;
if (input6 && input6->get_id() == id)
diff --git a/MainWindow.cpp b/MainWindow.cpp
index 18f9a61..06c1d4a 100644
--- a/MainWindow.cpp
+++ b/MainWindow.cpp
@@ -868,6 +868,11 @@ MainWindow::remove_object(Object &object)
}
break;
}
+ case Object::BINARYDISPLAY:
+ {
+ class BinaryDisplay &bsdp = (class BinaryDisplay&)object;
+ break;
+ }
case Object::NONE:
default:
printf("remove_object implement other objects\n");