update objects when adding new event with button, closes #297
This commit is contained in:
parent
f791157adc
commit
19633253f8
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue