summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-11-24 09:08:41 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2022-11-24 08:18:17 +0000
commitb841d68a956fdc987ea60cfab19f872cccce4a7b (patch)
treecc22da2494ebfcd7be17b917501d4e9e844c9caa /src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp
parent953051b8bba0b0dce4a3879e5f2365e6f82e47e3 (diff)
downloadqt-creator-b841d68a956fdc987ea60cfab19f872cccce4a7b.tar.gz
Wizards: Let "new file" wizard create subdirectories
Change-Id: I1267025ab3db3803e10c6a5ebf78bb945fe19c71 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp')
-rw-r--r--src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp b/src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp
index 6b23983f3b..be16256be0 100644
--- a/src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp
+++ b/src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp
@@ -36,7 +36,7 @@ bool JsonFilePage::validatePage()
return false;
const FilePath dir = filePath();
- if (!dir.isDir())
+ if (dir.exists() && !dir.isDir())
return false;
const FilePath target = dir.resolvePath(fileName());