Reset all edition actions before delete.

main
Paulo Gustavo Veiga 2012-11-18 20:58:23 -03:00
parent 322b0ba13e
commit 7f7a67872e
1 changed files with 9 additions and 0 deletions

View File

@ -752,7 +752,16 @@ mindplot.Designer = new Class({
}
},
_resetEdition:function () {
var screenManager = this._workspace.getScreenManager();
screenManager.fireEvent("update");
screenManager.fireEvent("mouseup");
this._relPivot.dispose();
},
deleteSelectedEntities:function () {
// Is there some action in progress ?.
this._resetEdition();
var topics = this.getModel().filterSelectedTopics();
var relation = this.getModel().filterSelectedRelationships();