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) {
|
if (editor && editor->project) {
|
||||||
DraggablePixmapItem *object = editor->addNewEvent(event_type);
|
DraggablePixmapItem *object = editor->addNewEvent(event_type);
|
||||||
if (object) {
|
if (object) {
|
||||||
|
updateObjects();
|
||||||
editor->selectMapEvent(object, false);
|
editor->selectMapEvent(object, false);
|
||||||
} else {
|
} else {
|
||||||
QMessageBox msgBox(this);
|
QMessageBox msgBox(this);
|
||||||
|
|
Loading…
Reference in a new issue