From 776544e63ed9a7a2c90c6b26f847b18882ee5146 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 27 May 2013 20:01:04 +0200 Subject: Missing SEP conversions. --- plugingui/filebrowser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/filebrowser.cc') 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; } -- cgit v1.2.3