Commit 8ae981de authored by lcgamboa's avatar lcgamboa

chg: Code refactor - Fix Windows freezing !minor

parent c9b3a86f
...@@ -2,5 +2,5 @@ PACKAGE=picsimlab ...@@ -2,5 +2,5 @@ PACKAGE=picsimlab
MAINVER=0 MAINVER=0
MINORVER=9 MINORVER=9
VERSION=0.9.1 VERSION=0.9.1
DATE=240201 DATE=240204
VERSION_STABLE=0.9.1 VERSION_STABLE=0.9.1
...@@ -2148,8 +2148,8 @@ int CPWindow1::OnExtraWindowCmd(const int id, const char* ControlName, const PIC ...@@ -2148,8 +2148,8 @@ int CPWindow1::OnExtraWindowCmd(const int id, const char* ControlName, const PIC
case PWA_WINDOWDESTROY: case PWA_WINDOWDESTROY:
((CPWindow*)ctrl)->Hide(); ((CPWindow*)ctrl)->Hide();
((CPWindow*)ctrl)->DestroyChilds(); ((CPWindow*)ctrl)->DestroyChilds();
((CPWindow*)ctrl)->SetCanDestroy(true);
((CPWindow*)ctrl)->WDestroy(); ((CPWindow*)ctrl)->WDestroy();
delete ctrl;
ctrl = NULL; ctrl = NULL;
break; break;
case PWA_WINDOWLOADXML: case PWA_WINDOWLOADXML:
......
...@@ -1271,8 +1271,8 @@ int CPWindow5::OnExtraWindowCmd(const int id, const char* ControlName, const PIC ...@@ -1271,8 +1271,8 @@ int CPWindow5::OnExtraWindowCmd(const int id, const char* ControlName, const PIC
case PWA_WINDOWDESTROY: case PWA_WINDOWDESTROY:
((CPWindow*)ctrl)->Hide(); ((CPWindow*)ctrl)->Hide();
((CPWindow*)ctrl)->DestroyChilds(); ((CPWindow*)ctrl)->DestroyChilds();
((CPWindow*)ctrl)->SetCanDestroy(true);
((CPWindow*)ctrl)->WDestroy(); ((CPWindow*)ctrl)->WDestroy();
delete ctrl;
ctrl = NULL; ctrl = NULL;
break; break;
case PWA_WINDOWLOADXML: case PWA_WINDOWLOADXML:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment