Skip to content

Commit

Permalink
Don't delete point if currently editing it
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisAsanaka committed Dec 28, 2019
1 parent dab4b75 commit 6a953ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<tgui::EditBox>("rowEditBox") == nullptr) {
removePoint(index);
generateProfile();
}
Expand Down

0 comments on commit 6a953ea

Please sign in to comment.