1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Avoid long repetitions of message boxes for opening corrupt project

This commit is contained in:
Paul Licameli
2017-10-20 23:22:07 -04:00
parent 404eca84c8
commit e4b9b7b505
4 changed files with 10 additions and 4 deletions

View File

@@ -13,7 +13,11 @@ wxAtomicInt sOutstandingMessages {};
MessageBoxException::MessageBoxException( const wxString &caption_ )
: caption{ caption_ }
{
wxAtomicInc( sOutstandingMessages );
if (!caption.empty())
wxAtomicInc( sOutstandingMessages );
else
// invalidate me
moved = true;
}
// The class needs a copy constructor to be throwable