diff options
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/directory.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc index c124cb1..b9188b8 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -272,7 +272,12 @@ std::string Directory::pathToStr(Directory::Path& path) { it != path.end(); it++) { std::string dir = *it; DEBUG(directory, "\tDir '%s'\n", dir.c_str()); +#ifdef WIN32 + if(it != path.begin()) cleaned_path += SEP; + cleaned_path += dir; +#else cleaned_path += SEP + dir; +#endif } DEBUG(directory, "Cleaned path '%s'\n", cleaned_path.c_str()); |