Skip to content

Commit

Permalink
model: removed objects are now properly removed from object list.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-0x7C6 committed Jan 9, 2020
1 parent 6b064b1 commit e2034f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/workspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ void Workspace::selected_object_center() {
}

void Workspace::selected_object_remove() {
removeItem(selected_object());
auto object = selected_object();
model()->removeObject(object);
removeItem(object);
}

graphical::model *Workspace::model() {
Expand Down

0 comments on commit e2034f3

Please sign in to comment.