diff options
author | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
commit | 228279d6717e69ffd2d2a886244179635ac27c2b (patch) | |
tree | d8a25007daeda686f07aefc8b5fcc9486040c536 /src/progs/gtk/RenameWindow.cpp | |
parent | 9a3d8d0604a2f81e3514e8a1a30aaf41aadf73a2 (diff) | |
download | ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.gz ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.bz2 ingen-228279d6717e69ffd2d2a886244179635ac27c2b.zip |
Got store working directly through SigClientInterface
git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/RenameWindow.cpp')
-rw-r--r-- | src/progs/gtk/RenameWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/progs/gtk/RenameWindow.cpp b/src/progs/gtk/RenameWindow.cpp index bde9a2c1..78f4d067 100644 --- a/src/progs/gtk/RenameWindow.cpp +++ b/src/progs/gtk/RenameWindow.cpp @@ -59,17 +59,17 @@ RenameWindow::set_object(GtkObjectController* object) void RenameWindow::name_changed() { - assert(m_name_entry != NULL); - assert(m_message_label != NULL); - assert(m_object->model() != NULL); - assert(m_object->model()->parent() != NULL); + assert(m_name_entry); + assert(m_message_label); + assert(m_object->model()); + assert(m_object->model()->parent()); string name = m_name_entry->get_text(); if (name.find("/") != string::npos) { m_message_label->set_text("Name may not contain '/'"); m_ok_button->property_sensitive() = false; //} else if (m_object->parent()->patch_model()->get_node(name) != NULL) { - } else if (Store::instance().object(m_object->model()->parent()->base_path() + name) != NULL) { + } else if (Store::instance().object(m_object->model()->parent()->base_path() + name)) { m_message_label->set_text("An object already exists with that name."); m_ok_button->property_sensitive() = false; } else if (name.length() == 0) { |