summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-27 20:01:04 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-27 20:01:04 +0200
commit776544e63ed9a7a2c90c6b26f847b18882ee5146 (patch)
tree8ef881b77ae2be15fb0533cff4da671d660cc8a1 /plugingui/filebrowser.cc
parent72662f3eee9ba918b623c5e7ba93c5c3b758d8dc (diff)
Missing SEP conversions.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index 9d5ae35..fcd4b9c 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -76,11 +76,11 @@ static void changeDir(void *ptr)
lb->clear();
INFO(filebrowser, "Changing path to '%s'\n",
- (dir->path() + "/" + value).c_str());
+ (dir->path() + dir->seperator() + value).c_str());
#ifdef WIN32
if(prv->above_root && !value.empty()) {
- dir->setPath(value+"\\");
+ dir->setPath(value + dir->seperator());
value.clear();
prv->above_root = false;
}
@@ -93,7 +93,7 @@ static void changeDir(void *ptr)
}
if(!value.empty() && dir->fileExists(value)) {
- std::string file = dir->path() + "/" + value;
+ std::string file = dir->path() + dir->seperator() + value;
DEBUG(filebrowser, "Selecting file '%s'\n", file.c_str());
if(prv->filesel_handler) prv->filesel_handler(prv->ptr, file);
return;
@@ -119,7 +119,7 @@ static void changeDir(void *ptr)
if(!value.empty() && !dir->cd(value)) {
DEBUG(filebrowser, "Error changing to '%s'\n",
- (dir->path() + "/" + value).c_str());
+ (dir->path() + dir->seperator() + value).c_str());
return;
}