diff options
Diffstat (limited to 'src/progs/gtk/NewSubpatchWindow.cpp')
-rw-r--r-- | src/progs/gtk/NewSubpatchWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/progs/gtk/NewSubpatchWindow.cpp b/src/progs/gtk/NewSubpatchWindow.cpp index dc4e47b4..6f64d9e8 100644 --- a/src/progs/gtk/NewSubpatchWindow.cpp +++ b/src/progs/gtk/NewSubpatchWindow.cpp @@ -63,7 +63,7 @@ NewSubpatchWindow::name_changed() if (name.find("/") != string::npos) { m_message_label->set_text("Name may not contain '/'"); m_ok_button->property_sensitive() = false; - } else if (m_patch_controller->patch_model()->get_node(name) != NULL) { + } else if (m_patch_controller->patch_model()->get_node(name)) { m_message_label->set_text("An object already exists with that name."); m_ok_button->property_sensitive() = false; } else if (name.length() == 0) { |