parent
655df94163
commit
c1fb8e9c57
|
@ -116,13 +116,13 @@ SB_STATUS CNewBoxWizard::TryToCreateBox()
|
|||
bool removeDefaultTemplates = templateSettings.contains(QRegularExpression(QStringLiteral("[\r\n]#RemoveDefaultTemplates=y[\r\n]")));
|
||||
|
||||
// Create base template
|
||||
if (templateSettings.isEmpty()) {
|
||||
int sharedTemplateMode = field("sharedTemplate").toInt();
|
||||
if (templateSettings.isEmpty() && sharedTemplateMode != 0) {
|
||||
const QString templateBase = QStringLiteral("Tmpl.Title=%1\nTmpl.Class=Local\n%3=n\n%4=n\n%5=n\n%6=n\nTmpl.Comment=%2")
|
||||
.arg(templateTitle, templateComment, "#DisableWizardSettings", "#RemoveDefaultAll", "#RemoveDefaultRecovers", "#RemoveDefaultTemplates");
|
||||
theAPI->SbieIniSet(templateFullName, "", templateBase);
|
||||
}
|
||||
|
||||
int sharedTemplateMode = field("sharedTemplate").toInt();
|
||||
switch (sharedTemplateMode)
|
||||
{
|
||||
case 1:
|
||||
|
|
Loading…
Reference in New Issue