diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-23 16:49:57 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-23 16:49:57 +0200 |
commit | b8ce3fb6ec855e09cc61c9cbfc46e809c4d80146 (patch) | |
tree | 958c2bb5c82027c56e5c5b9945125aa4f3337675 | |
parent | 1310069878e51506502107f68a9be48a211b6b47 (diff) |
Potential fix for non-responsive file-browser.
-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 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)); } |