Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:qcad/qcad

  • Loading branch information...
commit bc658c95f5c16a948a747b9e937baebb4dc6f676 2 parents 6162bb5 + 0815506
@qcad authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 scripts/Widgets/PropertyEditor/PropertyEditor.js
View
13 scripts/Widgets/PropertyEditor/PropertyEditor.js
@@ -220,9 +220,16 @@ function PropertyEditorImpl(basePath) {
if (isNull(di)) {
return;
}
- var action = new AddLayer();
- di.setCurrentAction(action);
- var layer = action.getAddedLayer();
+ var action = RGuiAction.getByScriptFile("scripts/Layer/AddLayer/AddLayer.js");
+ if (isNull(action)) {
+ return;
+ }
+ action.trigger();
+ var doc = di.getDocument();
+ var layer = doc.queryCurrentLayer();
+ //var action = new AddLayer();
+ //di.setCurrentAction(action);
+ //var layer = action.getAddedLayer();
if (!isNull(layer)) {
var pw = new PropertyWatcher(propertyEditor, layerCombo, REntity.PropertyLayer);
pw.propertyChanged(layer.getName());
Please sign in to comment.
Something went wrong with that request. Please try again.