diff options
Diffstat (limited to 'src/progs/gtk/NodePropertiesWindow.cpp')
-rw-r--r-- | src/progs/gtk/NodePropertiesWindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/progs/gtk/NodePropertiesWindow.cpp b/src/progs/gtk/NodePropertiesWindow.cpp index 048f2513..000fa6ac 100644 --- a/src/progs/gtk/NodePropertiesWindow.cpp +++ b/src/progs/gtk/NodePropertiesWindow.cpp @@ -26,6 +26,7 @@ using std::string; NodePropertiesWindow::NodePropertiesWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml) : Gtk::Window(cobject) +, m_node_model(NULL) { glade_xml->get_widget("node_properties_path_label", m_node_path_label); glade_xml->get_widget("node_properties_polyphonic_checkbutton", m_node_polyphonic_toggle); @@ -39,9 +40,9 @@ NodePropertiesWindow::NodePropertiesWindow(BaseObjectType* cobject, const Glib:: * This function MUST be called before using this object in any way. */ void -NodePropertiesWindow::set_node(NodeModel* node_model) +NodePropertiesWindow::set_node(CountedPtr<NodeModel> node_model) { - assert(node_model != NULL); + assert(node_model); m_node_model = node_model; |