mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-27 19:16:31 -05:00
do not push new EventDelete if there was no deletion
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user