- //delete this->ViewMenu;
- //delete this->ToolbarsMenu;
- //if(this->AssistantClient)
- // {
- // this->AssistantClient->closeAssistant();
- // delete this->AssistantClient;
- // }
+ if(this->AssistantClient) {
+ this->AssistantClient->closeAssistant();
+ delete this->AssistantClient;
+ }