The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Fix file dialog on Windows

Changes made to libbirdfont/FileDialogTab.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/FileDialogTab.vala +++ libbirdfont/FileDialogTab.vala @@ -130,7 +130,11 @@ string d = (!) current_dir.get_path (); printd (@"Subdir: $(f.file_name) in $d path_separator: $path_separator\n"); string p = d + path_separator + f.file_name; - p = p.replace ("\\\\", "\\"); + + while (p.index_of ("\\\\") != -1) { + p = p.replace ("\\\\", "\\"); + } + propagate_files (p); }