From 860fa527f026230e01d6c32a081e7f748932a11a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 4 May 2013 19:38:58 +0200 Subject: Fix path creation in win32 --- plugingui/directory.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui') 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()); -- cgit v1.2.3