summaryrefslogtreecommitdiffstats
path: root/src/UIFile.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-01-10 02:53:31 +0000
committerDavid Robillard <d@drobilla.net>2015-01-10 02:53:31 +0000
commitea59b3a8d2887e963b806c5f595f5d4e6460fc55 (patch)
tree94fcd7b385db257b216854e865e39ed41139295e /src/UIFile.hpp
parentb608165e9162d2d429de47bbc430ecae136d3455 (diff)
downloadpatchage-ea59b3a8d2887e963b806c5f595f5d4e6460fc55.tar.gz
patchage-ea59b3a8d2887e963b806c5f595f5d4e6460fc55.tar.bz2
patchage-ea59b3a8d2887e963b806c5f595f5d4e6460fc55.zip
More Mac integration work.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5511 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/UIFile.hpp')
-rw-r--r--src/UIFile.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/UIFile.hpp b/src/UIFile.hpp
index 561cb0f..f1ab5f8 100644
--- a/src/UIFile.hpp
+++ b/src/UIFile.hpp
@@ -41,9 +41,8 @@ public:
static Glib::RefPtr<Gtk::Builder> open(const std::string& base_name) {
std::string ui_filename;
#ifdef PATCHAGE_BINLOC
- std::string bundle = binary_location();
+ const std::string bundle = bundle_location();
if (!bundle.empty()) {
- bundle = bundle.substr(0, bundle.find_last_of("/"));
ui_filename = bundle + "/" + base_name + ".ui";
if (is_readable(ui_filename)) {
std::cout << "Loading UI file " << ui_filename << std::endl;