1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Use ShowExceptionDialog when we want to show ErrorReportDialog

This commit is contained in:
Dmitry Vedenko
2021-06-08 13:40:52 +03:00
committed by Dmitry Vedenko
parent bbb9ca14a2
commit 690772ccb0
18 changed files with 61 additions and 24 deletions

View File

@@ -447,6 +447,7 @@ void OnPaste(const CommandContext &context)
// Throw, so that any previous changes to the project in this loop
// are discarded.
throw SimpleMessageBoxException{
ExceptionType::BadUserAction,
XO("Pasting one type of track into another is not allowed."),
XO("Warning"),
"Error:_Copying_or_Pasting"
@@ -477,6 +478,7 @@ void OnPaste(const CommandContext &context)
// Throw, so that any previous changes to the project in this
// loop are discarded.
throw SimpleMessageBoxException{
ExceptionType::BadUserAction,
XO("Copying stereo audio into a mono track is not allowed."),
XO("Warning"),
"Error:_Copying_or_Pasting"