Commit 10b53f57 authored by Tobias Hunger's avatar Tobias Hunger

TextFileWizard: Do not add .txt if no extension is given.

Task-number: QTCREATORBUG-13889
Change-Id: I8a21665ce03a19ea96c09e9a5ccea59af995570d
Reviewed-by: default avatarRichard J. Moore <rich@kde.org>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent d2070c8f
......@@ -3,8 +3,8 @@
"kind": "file",
"id": "F.Resource",
"category": "U.General",
"trDescription": "Creates a text file. The default file extension is <tt>.txt</tt>. You can specify a different extension as part of the filename.",
"trDisplayName": "Text File",
"trDescription": "Creates an empty file.",
"trDisplayName": "Empty File",
"trDisplayCategory": "General",
"icon": "../../global/genericfilewizard.png",
"platformIndependent": true,
......@@ -30,7 +30,7 @@
"data":
{
"source": "file.txt",
"target": "%{JS: Util.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/plain')}')}",
"target": "%{TargetPath}",
"openInEditor": true
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment