summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-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;