diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-11-24 09:08:41 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-11-24 08:18:17 +0000 |
commit | b841d68a956fdc987ea60cfab19f872cccce4a7b (patch) | |
tree | cc22da2494ebfcd7be17b917501d4e9e844c9caa /src/plugins/projectexplorer/jsonwizard/jsonfilepage.cpp | |
parent | 953051b8bba0b0dce4a3879e5f2365e6f82e47e3 (diff) | |
download | qt-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.cpp | 2 |
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()); |