From bc639d80f086a50ae71bbd9e7f188de456447109 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Wed, 15 May 2013 19:29:47 +0200 Subject: Fixed selection of none existing file. --- plugingui/filebrowser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui') 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; -- cgit v1.2.3