do not push new EventDelete if there was no deletion

This commit is contained in:
garakmon 2020-08-04 00:58:43 -04:00 committed by garak
parent 5e4cc9a182
commit 24f970628e

View file

@ -2163,10 +2163,12 @@ void MainWindow::on_toolButton_deleteObject_clicked() {
logWarn(QString("Cannot delete event of type '%1'").arg(item->event->get("event_type")));
}
}
if (numDeleted) {
editor->map->editHistory.push(new EventDelete(editor, editor->map, selectedEvents, nextSelectedEvent ? nextSelectedEvent->event : nullptr));
}
}
}
}
void MainWindow::on_toolButton_Open_Scripts_clicked()
{