Sector Edit form, Vertex Edit form: fixed another crash related to realtime update...

This commit is contained in:
MaxED 2013-07-10 09:57:30 +00:00
parent ecbf9fd743
commit 6d717a06ea
4 changed files with 4 additions and 0 deletions

View file

@ -626,6 +626,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Show realtime vertex edit dialog
General.Interface.OnEditFormValuesChanged += new EventHandler(sectorEditForm_OnValuesChanged);
General.Interface.ShowEditSectors(selected);
General.Interface.OnEditFormValuesChanged -= sectorEditForm_OnValuesChanged;
// When a single sector was selected, deselect it now
if(selected.Count == 1)

View file

@ -407,6 +407,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. Show realtime vertex edit dialog
General.Interface.OnEditFormValuesChanged += new EventHandler(vertexEditForm_OnValuesChanged);
General.Interface.ShowEditVertices(selected);
General.Interface.OnEditFormValuesChanged -= vertexEditForm_OnValuesChanged;
// When a single vertex was selected, deselect it now
if(selected.Count == 1) General.Map.Map.ClearSelectedVertices();

View file

@ -651,6 +651,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Interface.OnEditFormValuesChanged += new System.EventHandler(Interface_OnEditFormValuesChanged);
General.Interface.ShowEditSectors(sectors);
General.Interface.OnEditFormValuesChanged -= Interface_OnEditFormValuesChanged;
updateList.Clear();
updateList = null;

View file

@ -306,6 +306,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Interface.OnEditFormValuesChanged += new System.EventHandler(Interface_OnEditFormValuesChanged);
General.Interface.ShowEditVertices(verts, false);
General.Interface.OnEditFormValuesChanged -= Interface_OnEditFormValuesChanged;
updateList.Clear();
updateList = null;