diff options
author | David Robillard <d@drobilla.net> | 2006-09-10 03:42:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-10 03:42:59 +0000 |
commit | 8854610aac91caaf6bb8db782cc4c9bd2ca53c52 (patch) | |
tree | b92d385755eec2404309aba384850396bedf0184 /src/progs/ingenuity/NewSubpatchWindow.cpp | |
parent | a90181962d3f9eca3e00f665465bbd66bdd79927 (diff) | |
download | ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.gz ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.bz2 ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.zip |
GUI redesigning.
git-svn-id: http://svn.drobilla.net/lad/ingen@125 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/NewSubpatchWindow.cpp')
-rw-r--r-- | src/progs/ingenuity/NewSubpatchWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/ingenuity/NewSubpatchWindow.cpp b/src/progs/ingenuity/NewSubpatchWindow.cpp index 49122a21..0b94e3d2 100644 --- a/src/progs/ingenuity/NewSubpatchWindow.cpp +++ b/src/progs/ingenuity/NewSubpatchWindow.cpp @@ -63,8 +63,8 @@ void NewSubpatchWindow::name_changed() { string name = m_name_entry->get_text(); - if (name.find("/") != string::npos) { - m_message_label->set_text("Name may not contain '/'"); + if (!Path::is_valid_name(name)) { + m_message_label->set_text("Name contains invalid characters."); m_ok_button->property_sensitive() = false; } else if (m_patch_controller->patch_model()->get_node(name)) { m_message_label->set_text("An object already exists with that name."); |