| 1321 | } |
| 1322 | |
| 1323 | void OnImportResult(ImportResult result) override |
| 1324 | { |
| 1325 | mProgressDialog.reset(); |
| 1326 | if(result == ImportResult::Error) |
| 1327 | { |
| 1328 | auto message = mImportFileHandle->GetErrorMessage(); |
| 1329 | if(!message.empty()) |
| 1330 | { |
| 1331 | AudacityMessageBox(message, XO("Import"), wxOK | wxCENTRE | wxICON_ERROR, |
| 1332 | mProject ? &GetProjectFrame(*mProject) : nullptr); |
| 1333 | } |
| 1334 | } |
| 1335 | } |
| 1336 | |
| 1337 | private: |
| 1338 |
no test coverage detected