Cannot type "q" letter in any of the boxes around the app

This commit is contained in:
bancika
2017-01-05 16:10:52 +01:00
parent 980055d4c0
commit 8a3f017468
8 changed files with 30 additions and 15 deletions
@@ -1790,18 +1790,19 @@ public class Presenter implements IPlugInPort {
setNewComponentTypeSlot(null, null);
return;
}
// try to find a default template if none is provided
if (componentType != null && template == null) {
List<Template> templates = getTemplatesFor(componentType.getCategory(), componentType.getName());
for (Template t : templates) {
if (t.isDefaultFlag()) {
template = t;
break;
if (templates != null)
for (Template t : templates) {
if (t.isDefaultFlag()) {
template = t;
break;
}
}
}
}
try {
instantiationManager.setComponentTypeSlot(componentType, template, currentProject);
if (componentType != null) {