summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ui_config.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-21 19:39:13 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-21 19:39:13 -0400
commit68b6d0d796560ca9bd417a02bed3e9933c343e10 (patch)
tree1023927b86ca4d50ea63138f265115be780dafb5 /gtk2_ardour/ui_config.cc
parent74f567b7891d80d59558aab5d92e765af7e0ffc2 (diff)
fix some more thinkos related to user color file management
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r--gtk2_ardour/ui_config.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index 67117c2f2f..0890f6531b 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -300,12 +300,14 @@ UIConfiguration::load_color_theme (bool allow_own)
PBD::Searchpath sp (user_config_directory());
- if (find_file (sp, color_file_name (true, running_from_source, true), cfile)) {
+ /* user's own color files never have the program name in them */
+
+ if (find_file (sp, color_file_name (true, false, true), cfile)) {
found = true;
}
if (!found) {
- if (find_file (sp, color_file_name (true, running_from_source, false), cfile)) {
+ if (find_file (sp, color_file_name (true, false, false), cfile)) {
found = true;
}
}