update objects when adding new event with button, closes #297

This commit is contained in:
garakmon 2020-09-13 18:48:03 -04:00
parent f791157adc
commit 19633253f8

View file

@ -1454,6 +1454,7 @@ void MainWindow::addNewEvent(QString event_type)
if (editor && editor->project) {
DraggablePixmapItem *object = editor->addNewEvent(event_type);
if (object) {
updateObjects();
editor->selectMapEvent(object, false);
} else {
QMessageBox msgBox(this);