diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-04 19:38:58 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-04 19:38:58 +0200 |
commit | 860fa527f026230e01d6c32a081e7f748932a11a (patch) | |
tree | e935ef5f67a99c7996bb12d1a9c2844bdd805380 | |
parent | a93d2e811f26d291d2c1983318f585906c9b6d46 (diff) |
Fix path creation in win32
-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()); |