Recursivaly search the window list for the given window.
| 1600 | // Recursivaly search the window list for the given window. |
| 1601 | // |
| 1602 | bool ProgressDialog::SearchForWindow(const wxWindowList & list, const wxWindow *searchfor) const |
| 1603 | { |
| 1604 | for (auto win : list) |
| 1605 | { |
| 1606 | if (win == searchfor || SearchForWindow(win->GetChildren(), searchfor)) |
| 1607 | { |
| 1608 | return true; |
| 1609 | } |
| 1610 | } |
| 1611 | |
| 1612 | return false; |
| 1613 | } |
| 1614 | |
| 1615 | void ProgressDialog::OnCancel(wxCommandEvent & WXUNUSED(event)) |
| 1616 | { |
nothing calls this directly
no test coverage detected