summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/NewSubpatchWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/NewSubpatchWindow.cpp')
-rw-r--r--src/libs/gui/NewSubpatchWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/gui/NewSubpatchWindow.cpp b/src/libs/gui/NewSubpatchWindow.cpp
index 02d3e9e0..e33c9f2e 100644
--- a/src/libs/gui/NewSubpatchWindow.cpp
+++ b/src/libs/gui/NewSubpatchWindow.cpp
@@ -73,7 +73,7 @@ NewSubpatchWindow::name_changed()
_message_label->set_text("Name contains invalid characters.");
_ok_button->property_sensitive() = false;
} else if (App::instance().store()->find(_patch->path().base() + name)
- != App::instance().store()->objects().end()) {
+ != App::instance().store()->end()) {
_message_label->set_text("An object already exists with that name.");
_ok_button->property_sensitive() = false;
} else if (name.length() == 0) {