summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:29:47 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:29:47 +0200
commitbc639d80f086a50ae71bbd9e7f188de456447109 (patch)
tree055e55ec9d0cee8981b887c39345767acd29db00 /plugingui/filebrowser.cc
parent25d2663dc4008127dad965cca5712a4faac66a10 (diff)
Fixed selection of none existing file.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index 3c8b89d..9d5ae35 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -86,7 +86,7 @@ static void changeDir(void *ptr)
}
#endif
- if(value.empty() && !dir->isDir()) {
+ if(value.empty() && !dir->isDir() && Directory::exists(dir->path())) {
DEBUG(filebrowser, "Selecting file '%s'\n", dir->path().c_str());
if(prv->filesel_handler) prv->filesel_handler(prv->ptr, dir->path().c_str());
return;