From b8ce3fb6ec855e09cc61c9cbfc46e809c4d80146 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 23 Oct 2019 16:49:57 +0200 Subject: Potential fix for non-responsive file-browser. --- 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 3db8e0a..68a80b0 100644 --- a/plugingui/filebrowser.cc +++ b/plugingui/filebrowser.cc @@ -90,7 +90,7 @@ void FileBrowser::setPath(const std::string& path) { INFO(filebrowser, "Setting path to '%s'\n", path.c_str()); - if(!path.empty()) + if(!path.empty() && Directory::exists(path)) { dir.setPath(Directory::pathDirectory(path)); } -- cgit v1.2.3