Fix bug 6833 in bugzilla
authorJohn Emmas <johne53@tiscali.co.uk>
Sun, 8 May 2016 11:06:12 +0000 (12:06 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sun, 8 May 2016 11:06:12 +0000 (12:06 +0100)
http://tracker.ardour.org/view.php?id=6833

When searching for our keyboard bindings file, ArdourKeyboard::find_bindings_files() was trying to find files with the wrong extension:- "..keys" rather than ".keys" (note the extra period). Fortunately, some later code was masking the problem (so we were eventually finding the file correctly). However we might as well fix the problem here, just in case we ever need to call ArdourKeyboard::find_bindings_files() from somewhere else in the future.

gtk2_ardour/keyboard.cc

index a84f6478060c1b24e45c6c65e263c45c4f068af8..729337ed1152bbfb9c99c112b1ff6549e3620aaa 100644 (file)
@@ -56,7 +56,7 @@ ArdourKeyboard::find_bindings_files (map<string,string>& files)
        vector<std::string> found;
        Searchpath spath = ardour_config_search_path();
 
-       find_files_matching_pattern (found, spath, string_compose ("*.%1", Keyboard::binding_filename_suffix));
+       find_files_matching_pattern (found, spath, string_compose ("*%1", Keyboard::binding_filename_suffix));
 
        if (found.empty()) {
                return;