From 529f19a2de7d73c5cfd1f326d1a56e3b3a80353b Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Tue, 17 Nov 2020 13:59:49 -0500 Subject: [PATCH] check path is not empty (#2203) * check path is not empty * fix formatting * use isEmpty() to check path --- src/singletons/Paths.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/singletons/Paths.cpp b/src/singletons/Paths.cpp index 06c3caab6..ae6d55d19 100644 --- a/src/singletons/Paths.cpp +++ b/src/singletons/Paths.cpp @@ -44,7 +44,10 @@ QString Paths::cacheDirectory() QStringSetting cachePathSetting("/cache/path"); cachePathSetting.connect([](const auto &newPath, auto) { - QDir().mkpath(newPath); + if (!newPath.isEmpty()) + { + QDir().mkpath(newPath); + } }); return cachePathSetting;