summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-04 19:38:58 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-04 19:38:58 +0200
commit860fa527f026230e01d6c32a081e7f748932a11a (patch)
treee935ef5f67a99c7996bb12d1a9c2844bdd805380
parenta93d2e811f26d291d2c1983318f585906c9b6d46 (diff)
Fix path creation in win32
-rw-r--r--plugingui/directory.cc5
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());