The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix file dialog on Windows

These changes was commited to the Birdfont repository Thu, 27 Aug 2015 15:28:13 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 15:28:13 +0000 (17:28 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Thu, 27 Aug 2015 15:28:13 +0000 (17:28 +0200)
commit 0c8e3283ff5ab62de211ede73c59125ad55a2ce6
tree e8ed8102420995ce97bfa9d440344fc86423bd44
parent 9231cd8ce32765767a287f5690826029864bf86d
Fix file dialog on Windows

libbirdfont/FileDialogTab.vala
--- a/libbirdfont/FileDialogTab.vala +++ b/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); }