MCPcopy Create free account
hub / github.com/audacity/audacity / OnImportResult

Method OnImportResult

src/ProjectFileManager.cpp:1323–1335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
1337private:
1338

Callers 11

ImportMethod · 0.45
NotifyImportFailedMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45
ImportMethod · 0.45

Calls 4

AudacityMessageBoxFunction · 0.85
resetMethod · 0.45
GetErrorMessageMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected