diff options
Diffstat (limited to 'src/gui/WindowFactory.cpp')
-rw-r--r-- | src/gui/WindowFactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/WindowFactory.cpp b/src/gui/WindowFactory.cpp index 98af4c19..1f0e0310 100644 --- a/src/gui/WindowFactory.cpp +++ b/src/gui/WindowFactory.cpp @@ -112,12 +112,12 @@ WindowFactory::patch_window(SharedPtr<const PatchModel> patch) } PatchWindow* -WindowFactory::parent_patch_window(SharedPtr<const NodeModel> node) +WindowFactory::parent_patch_window(SharedPtr<const BlockModel> block) { - if (!node) + if (!block) return NULL; - return patch_window(PtrCast<PatchModel>(node->parent())); + return patch_window(PtrCast<PatchModel>(block->parent())); } /** Present a PatchWindow for a Patch. |