- if (m_bBackgroundTaskAdded) {
- wxCommandEvent doneEvent (wxEVT_COMMAND_MENU_SELECTED, MSG_BACKGROUND_SUPERVISOR_REMOVE);
- doneEvent.SetClientData (this);
- wxPostEvent (theApp->getBackgroundManager(), doneEvent);
- wxPostEvent (m_pDocument, doneEvent);
- }
-
- while (m_bBackgroundTaskAdded) {
- m_pMyThread->Sleep(50);
- }