mirror of
https://github.com/huderlem/porymap.git
synced 2026-07-31 23:23:04 -05:00
do not push new EventDelete if there was no deletion
This commit is contained in:
parent
5e4cc9a182
commit
24f970628e
|
|
@ -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 New Issue
Block a user