summaryrefslogtreecommitdiff
path: root/libs/ardour/control_protocol_search_path.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-04 21:08:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-04 21:08:34 +0000
commitaf768c74290a0b2615846a19fcaac30fa3d3712a (patch)
tree75464eac0266d91ddda3fc7c850b2411859524e5 /libs/ardour/control_protocol_search_path.cc
parent30f75c446e09f0aaa93ed73ed6e32332eda52735 (diff)
be consistent in the way we merge environment-set search paths and pre-defined ones
git-svn-id: svn://localhost/ardour2/branches/3.0@10890 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/control_protocol_search_path.cc')
-rw-r--r--libs/ardour/control_protocol_search_path.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/control_protocol_search_path.cc b/libs/ardour/control_protocol_search_path.cc
index c7c9b635a3..345989277b 100644
--- a/libs/ardour/control_protocol_search_path.cc
+++ b/libs/ardour/control_protocol_search_path.cc
@@ -34,18 +34,18 @@ namespace ARDOUR {
SearchPath
control_protocol_search_path ()
{
- bool surfaces_path_defined = false;
- SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined));
-
- if (surfaces_path_defined) {
- return spath_env;
- }
-
SearchPath spath (user_config_directory ());
spath += ardour_module_directory ();
spath.add_subdirectory_to_paths (surfaces_dir_name);
+ bool surfaces_path_defined = false;
+ SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined));
+
+ if (surfaces_path_defined) {
+ spath += spath_env;
+ }
+
return spath;
}