mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
Fl_Preferences: fix missing '/' (#891)
Without the '/' FLTK 1.4 wouldn't fall back to the 1.3 prefs folder even if it existed.
This commit is contained in:
@@ -557,7 +557,7 @@ char *Fl_Unix_System_Driver::preference_user_rootnode(
|
|||||||
|
|
||||||
// 2: If this base path does not exist, try the 1.3 path
|
// 2: If this base path does not exist, try the 1.3 path
|
||||||
if (::access(prefs_path_14.c_str(), F_OK) == -1) {
|
if (::access(prefs_path_14.c_str(), F_OK) == -1) {
|
||||||
Fl_String prefs_path_13 = home_path + ".fltk/" + vendor;
|
Fl_String prefs_path_13 = home_path + "/.fltk/" + vendor;
|
||||||
if (::access(prefs_path_13.c_str(), F_OK) == 0) {
|
if (::access(prefs_path_13.c_str(), F_OK) == 0) {
|
||||||
prefs_path_13.append('/');
|
prefs_path_13.append('/');
|
||||||
prefs_path_13.append(application);
|
prefs_path_13.append(application);
|
||||||
|
|||||||
Reference in New Issue
Block a user