| 153 | #endif |
| 154 | |
| 155 | bool OnDropFiles(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), const wxArrayString& filenames) override |
| 156 | { |
| 157 | // Experiment shows that this function can be reached while there is no |
| 158 | // catch block above in wxWidgets. So stop all exceptions here. |
| 159 | return GuardedCall<bool>( |
| 160 | [&] { return ProjectFileManager::Get(*mProject).Import(filenames); }); |
| 161 | } |
| 162 | |
| 163 | private: |
| 164 | AudacityProject *mProject; |