diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-15 19:29:47 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-15 19:29:47 +0200 |
commit | bc639d80f086a50ae71bbd9e7f188de456447109 (patch) | |
tree | 055e55ec9d0cee8981b887c39345767acd29db00 /plugingui | |
parent | 25d2663dc4008127dad965cca5712a4faac66a10 (diff) |
Fixed selection of none existing file.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/filebrowser.cc | 2 |
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; |