Commit bc1972f0 authored by Thomas Holder's avatar Thomas Holder

fix get_filename with locale!=NULL

parent 23f511cd
Pipeline #41176389 passed with stages
in 4 minutes and 42 seconds
......@@ -149,8 +149,8 @@ Glib::ustring get_filename(Type type, char const *filename, char const *locale)
Glib::ustring result;
if(locale != nullptr) {
char *user_locale = _get_path(USER, type, filename);
char *sys_locale = _get_path(SYSTEM, type, filename);
char *user_locale = _get_path(USER, type, locale);
char *sys_locale = _get_path(SYSTEM, type, locale);
if (file_test(user_locale, G_FILE_TEST_EXISTS)) {
result = Glib::ustring(user_locale);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment