Permalink
Browse files

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

  • Loading branch information...
2 parents 6162bb5 + 0815506 commit bc658c95f5c16a948a747b9e937baebb4dc6f676 @qcad committed Nov 12, 2013
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());

0 comments on commit bc658c9

Please sign in to comment.