diff options
author | Robin Gareus <robin@gareus.org> | 2016-02-17 17:03:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-02-17 17:03:14 +0100 |
commit | ec708926fa09b8e0a168029a69cb484fbc52a97a (patch) | |
tree | 60abc33858e78cf3155175e6330803bb75841398 /libs | |
parent | 23e96f7f9b0bd68bd36be8b201eebc8415ec4cda (diff) |
now with return value
Diffstat (limited to 'libs')
-rw-r--r-- | libs/pbd/openuri.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/pbd/openuri.cc b/libs/pbd/openuri.cc index f96150f5db..0d744ae50d 100644 --- a/libs/pbd/openuri.cc +++ b/libs/pbd/openuri.cc @@ -84,13 +84,15 @@ PBD::open_folder (const std::string& d) { #ifdef __APPLE__ CURL *curl = curl_easy_init (); + bool rv = false; if (curl) { char * e = curl_easy_escape (curl, d.c_str(), d.size()); std::string url = "file:///" + std::string(e); - PBD::open_uri (url); + rv = PBD::open_uri (url); curl_free (e); } + return rv; #else - PBD::open_uri (d); + return PBD::open_uri (d); #endif } |