Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 736:4b58b8f44be7
If a file that looks like audio can't be opened as audio, fail immediately - don't go trying to open .wav files or whatever as sessions or annotations. That only means the error shown to the user is less helpful.
author | Chris Cannam |
---|---|
date | Wed, 05 Feb 2020 10:45:03 +0000 |
parents | de7969894402 |
children | 48001ed9143b 7b1d30af4b38 |
comparison
equal
deleted
inserted
replaced
735:fda54e91ca05 | 736:4b58b8f44be7 |
---|---|
1507 return FileOpenFailed; | 1507 return FileOpenFailed; |
1508 } | 1508 } |
1509 } | 1509 } |
1510 } | 1510 } |
1511 | 1511 |
1512 if (audio && (status = openAudio(source, mode)) != FileOpenFailed) { | 1512 if (audio) { |
1513 return status; | 1513 return openAudio(source, mode); |
1514 } else if ((status = openSession(source)) != FileOpenFailed) { | 1514 } else if ((status = openSession(source)) != FileOpenFailed) { |
1515 return status; | 1515 return status; |
1516 } else if ((status = openPlaylist(source, mode)) != FileOpenFailed) { | 1516 } else if ((status = openPlaylist(source, mode)) != FileOpenFailed) { |
1517 return status; | 1517 return status; |
1518 } else if (!canImportLayer) { | 1518 } else if (!canImportLayer) { |