diff options
Diffstat (limited to 'src/gui/PatchView.cpp')
-rw-r--r-- | src/gui/PatchView.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/PatchView.cpp b/src/gui/PatchView.cpp index 04d6cf9c..19ff35d6 100644 --- a/src/gui/PatchView.cpp +++ b/src/gui/PatchView.cpp @@ -117,9 +117,8 @@ PatchView::set_patch(SharedPtr<const PatchModel> patch) SharedPtr<PatchView> PatchView::create(SharedPtr<const PatchModel> patch) { - const Glib::RefPtr<Gtk::Builder>& xml = WidgetFactory::create("patch_view_box"); PatchView* result = NULL; - xml->get_widget_derived("patch_view_box", result); + WidgetFactory::get_widget_derived("patch_view_box", result); assert(result); result->set_patch(patch); return SharedPtr<PatchView>(result); |