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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user