From c770d3f4a760fdd1ce6aaeb02efb617e7a21a24e Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 29 Apr 2019 16:45:11 +0200 Subject: [PATCH] Wizards: Allow non-existing base directory for new files It's a valid use case to put new files into a new directory. Task-number: QTCREATORBUG-15599 Change-Id: Iea479d7a723302a14ba8cc887c1036ea6a120ced Reviewed-by: Eike Ziller --- share/qtcreator/templates/wizards/classes/cpp/wizard.json | 2 +- share/qtcreator/templates/wizards/classes/itemmodel/wizard.json | 2 +- share/qtcreator/templates/wizards/classes/python/wizard.json | 2 +- share/qtcreator/templates/wizards/classes/qtquickui/wizard.json | 2 +- .../templates/wizards/files/modeling/model/wizard.json | 2 +- share/qtcreator/templates/wizards/files/scxml/wizard.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/qtcreator/templates/wizards/classes/cpp/wizard.json b/share/qtcreator/templates/wizards/classes/cpp/wizard.json index 24b1f79b610..54c7dcabfd5 100644 --- a/share/qtcreator/templates/wizards/classes/cpp/wizard.json +++ b/share/qtcreator/templates/wizards/classes/cpp/wizard.json @@ -155,7 +155,7 @@ "mandatory": true, "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" } diff --git a/share/qtcreator/templates/wizards/classes/itemmodel/wizard.json b/share/qtcreator/templates/wizards/classes/itemmodel/wizard.json index b6b70ba2452..8b4830ca32d 100644 --- a/share/qtcreator/templates/wizards/classes/itemmodel/wizard.json +++ b/share/qtcreator/templates/wizards/classes/itemmodel/wizard.json @@ -108,7 +108,7 @@ "mandatory": true, "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" } diff --git a/share/qtcreator/templates/wizards/classes/python/wizard.json b/share/qtcreator/templates/wizards/classes/python/wizard.json index 6d1d72c63bb..56a8d419e79 100644 --- a/share/qtcreator/templates/wizards/classes/python/wizard.json +++ b/share/qtcreator/templates/wizards/classes/python/wizard.json @@ -117,7 +117,7 @@ "mandatory": true, "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" } diff --git a/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json b/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json index a1d43389940..3fc4ed23a99 100644 --- a/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json +++ b/share/qtcreator/templates/wizards/classes/qtquickui/wizard.json @@ -57,7 +57,7 @@ "mandatory": true, "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" } diff --git a/share/qtcreator/templates/wizards/files/modeling/model/wizard.json b/share/qtcreator/templates/wizards/files/modeling/model/wizard.json index 2f8cff689a1..b2d9029c74c 100644 --- a/share/qtcreator/templates/wizards/files/modeling/model/wizard.json +++ b/share/qtcreator/templates/wizards/files/modeling/model/wizard.json @@ -38,7 +38,7 @@ "trIncompleteMessage": "\"%{JS: Util.toNativeSeparators('%{TargetPath}')}\" exists in the filesystem.", "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" } diff --git a/share/qtcreator/templates/wizards/files/scxml/wizard.json b/share/qtcreator/templates/wizards/files/scxml/wizard.json index 4e9e8706379..4c150c62568 100644 --- a/share/qtcreator/templates/wizards/files/scxml/wizard.json +++ b/share/qtcreator/templates/wizards/files/scxml/wizard.json @@ -38,7 +38,7 @@ "trIncompleteMessage": "\"%{JS: Util.toNativeSeparators('%{TargetPath}')}\" exists in the filesystem.", "data": { - "kind": "existingDirectory", + "kind": "directory", "basePath": "%{InitialPath}", "path": "%{InitialPath}" }