do not push new EventDelete if there was no deletion
This commit is contained in:
parent
5e4cc9a182
commit
24f970628e
1 changed files with 3 additions and 1 deletions
|
@ -2163,7 +2163,9 @@ void MainWindow::on_toolButton_deleteObject_clicked() {
|
|||
logWarn(QString("Cannot delete event of type '%1'").arg(item->event->get("event_type")));
|
||||
}
|
||||
}
|
||||
editor->map->editHistory.push(new EventDelete(editor, editor->map, selectedEvents, nextSelectedEvent ? nextSelectedEvent->event : nullptr));
|
||||
if (numDeleted) {
|
||||
editor->map->editHistory.push(new EventDelete(editor, editor->map, selectedEvents, nextSelectedEvent ? nextSelectedEvent->event : nullptr));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue