diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-04 19:55:11 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-04 19:55:11 +0200 |
commit | f5c83d3103ca07354fb4eb1919da9aae132f9397 (patch) | |
tree | 1a8627409882790037fb42eb067511353243f563 /plugingui/directory.cc | |
parent | 310b14903960fdf95ec85b09250b929588e7f006 (diff) | |
parent | 860fa527f026230e01d6c32a081e7f748932a11a (diff) |
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'plugingui/directory.cc')
-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()); |