diff --git a/src/simController.cpp b/src/simController.cpp index 7f384c0..9f3ea52 100644 --- a/src/simController.cpp +++ b/src/simController.cpp @@ -42,7 +42,7 @@ void SimController::handleEvent(sf::Event event) { case sf::Event::EventType::KeyReleased: switch (event.key.code) { case sf::Keyboard::Delete: - if (index != -1 && index != 0) { + if (index != -1 && index != 0 && gui.get("rowEditBox") == nullptr) { removePoint(index); generateProfile(); }