mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-26 18:47:07 -05:00
update objects when adding new event with button, closes #297
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user