1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-06 14:27:36 +02: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

@@ -1284,6 +1284,7 @@ void WaveTrack::Paste(double t0, const Track *src)
// Strong-guarantee in case of this path
// not that it matters.
throw SimpleMessageBoxException{
ExceptionType::BadUserAction,
XO("There is not enough room available to paste the selection"),
XO("Warning"),
"Error:_Insufficient_space_in_track"
@@ -1306,6 +1307,7 @@ void WaveTrack::Paste(double t0, const Track *src)
// Strong-guarantee in case of this path
// not that it matters.
throw SimpleMessageBoxException{
ExceptionType::BadUserAction,
XO("There is not enough room available to paste the selection"),
XO("Warning"),
"Error:_Insufficient_space_in_track"
@@ -2422,6 +2424,7 @@ void WaveTrack::ExpandCutLine(double cutLinePosition, double* cutlineStart,
clip->GetEndTime() + end - start > clip2->GetStartTime())
// Strong-guarantee in case of this path
throw SimpleMessageBoxException{
ExceptionType::BadUserAction,
XO("There is not enough room available to expand the cut line"),
XO("Warning"),
"Error:_Insufficient_space_in_track"