summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorjsc@umbraculum.org <jsc@umbraculum.org>2013-04-26 11:43:03 +0200
committerjsc@umbraculum.org <jsc@umbraculum.org>2013-04-26 11:43:03 +0200
commitedcd71e1de45196ec8f14ffa6cf7659ea2c0221f (patch)
tree71c0835b06ed3957311c431c1ff43ec06602ab7b /plugingui/filebrowser.cc
parentc6de5ceeb79539926390221ba283fe1174558fe5 (diff)
Fixed lot of stuff.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index d64a0ab..d9b3250 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -75,7 +75,7 @@ static void changeDir(void *ptr) {
INFO(filebrowser, "Changing dir to '%s'\n", (dir->path() + "/" + value).c_str());
- if(!value.empty() && dir->exists(value)) {
+ if(!value.empty() && dir->fileExists(value)) {
std::string file = dir->path() + "/" + value;
DEBUG(filebrowser, "Selecting file '%s'\n", file.c_str());
if(prv->filesel_handler) prv->filesel_handler(prv->ptr, file);
@@ -271,10 +271,13 @@ static bool isDir(std::string d)
void GUI::FileBrowser::setPath(std::string path)
{
- // TODO: Remove this check to directoy.cc
- if(path.empty()) return;
+ WARN(filebrowser, "Not implemented yet!");
+ // TODO: Remove this check to directoy.cc
+// INFO(filebrowser, "Setting path to '%s'\n", path.c_str());
+// if(path.empty()) return;
- prv->dir->setPath(path);
+ // TODO: Strip path to set path to a directory
+// prv->dir->setPath(path);
/*
std::string dir;
if(prv->dir->isDir()) {