From ea59b3a8d2887e963b806c5f595f5d4e6460fc55 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Jan 2015 02:53:31 +0000 Subject: More Mac integration work. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5511 a436a847-0d15-0410-975c-d299462d15a1 --- src/UIFile.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/UIFile.hpp') 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 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; -- cgit v1.2.1