summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ClientStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index b055a88c..a0c789c4 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -117,7 +117,7 @@ ClientStore::remove_object(const Raul::Path& path)
// Remove object from parent model if applicable
if (object->parent()) {
- SPtr<PortModel> port = dynamic_ptr_cast<PortModel>(top->second);
+ SPtr<PortModel> port = dynamic_ptr_cast<PortModel>(object);
SPtr<GraphModel> gpparent = dynamic_ptr_cast<GraphModel>(
object->parent()->parent());
if (port && gpparent) {