Skip to content

Commit

Permalink
Updated onUpdOpenUndoListDialog(). Refs #10426
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Mar 28, 2022
1 parent afbd249 commit 6d43751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netedit/GNEApplicationWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,8 @@ GNEApplicationWindow::onCmdOpenUndoListDialog(FXObject*, FXSelector, void*) {

long
GNEApplicationWindow::onUpdOpenUndoListDialog(FXObject* sender, FXSelector, void*) {
// check if net exist
if (myNet) {
// check if net exist and there is something to undo/redo
if (myNet && (myEditMenuCommands.undoLastChange->isEnabled() || myEditMenuCommands.redoLastChange->isEnabled())) {
sender->handle(this, FXSEL(SEL_COMMAND, ID_ENABLE), nullptr);
} else {
sender->handle(this, FXSEL(SEL_COMMAND, ID_DISABLE), nullptr);
Expand Down

0 comments on commit 6d43751

Please sign in to comment.