diff options
author | David Robillard <d@drobilla.net> | 2015-11-14 18:58:13 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-11 14:41:15 +0200 |
commit | 7dd82030ec60df74db7be51a6b8b3bb4a8a9f5a3 (patch) | |
tree | 8a84ba91617b043893452dcb506c7a66e71a7c9b /src/gui/PropertiesWindow.cpp | |
parent | a62ce15ddeac5676e7fb6ff413da42ec8b0f4a11 (diff) | |
download | ingen-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.cpp | 12 |
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); |