summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-10-23 16:49:57 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-10-23 16:49:57 +0200
commitb8ce3fb6ec855e09cc61c9cbfc46e809c4d80146 (patch)
tree958c2bb5c82027c56e5c5b9945125aa4f3337675
parent1310069878e51506502107f68a9be48a211b6b47 (diff)
Potential fix for non-responsive file-browser.
-rw-r--r--plugingui/filebrowser.cc2
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));
}