summaryrefslogtreecommitdiffstats
path: root/src/gui/PropertiesWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-14 18:58:13 -0500
committerDavid Robillard <d@drobilla.net>2016-09-11 14:41:15 +0200
commit7dd82030ec60df74db7be51a6b8b3bb4a8a9f5a3 (patch)
tree8a84ba91617b043893452dcb506c7a66e71a7c9b /src/gui/PropertiesWindow.cpp
parenta62ce15ddeac5676e7fb6ff413da42ec8b0f4a11 (diff)
downloadingen-7dd82030ec60df74db7be51a6b8b3bb4a8a9f5a3.tar.gz
ingen-7dd82030ec60df74db7be51a6b8b3bb4a8a9f5a3.tar.bz2
ingen-7dd82030ec60df74db7be51a6b8b3bb4a8a9f5a3.zip
Use URIDs for prototypes
Diffstat (limited to 'src/gui/PropertiesWindow.cpp')
-rw-r--r--src/gui/PropertiesWindow.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/PropertiesWindow.cpp b/src/gui/PropertiesWindow.cpp
index 09474027..2b77f93e 100644
--- a/src/gui/PropertiesWindow.cpp
+++ b/src/gui/PropertiesWindow.cpp
@@ -451,14 +451,10 @@ PropertiesWindow::get_value(LV2_URID type, Gtk::Widget* value_widget)
}
} else if (type == forge.URI || type == forge.URID) {
URIEntry* uri_entry = dynamic_cast<URIEntry*>(value_widget);
- if (uri_entry) {
- if (Raul::URI::is_valid(uri_entry->get_text())) {
- return _app->forge().make_urid(
- _app->world()->uri_map().map_uri(uri_entry->get_text()));
- } else {
- _app->log().error(fmt("Invalid URI <%1%>\n\n")
- % uri_entry->get_text());
- }
+ if (uri_entry && Raul::URI::is_valid(uri_entry->get_text())) {
+ return _app->forge().make_urid(Raul::URI(uri_entry->get_text()));
+ } else {
+ _app->log().error(fmt("Invalid URI <%1%>\n") % uri_entry->get_text());
}
} else if (type == forge.String) {
Gtk::Entry* entry = dynamic_cast<Gtk::Entry*>(value_widget);