summaryrefslogtreecommitdiffstats
path: root/src/UIFile.hpp
diff options
context:
space:
mode:
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;