Bugs2581, 2544: Don't corrupt if can't paste because clips can't move

This commit is contained in:
Paul Licameli 2020-11-25 11:44:04 -05:00
parent 2fe0a07901
commit 7a1ca42109
1 changed files with 13 additions and 1 deletions

View File

@ -239,7 +239,19 @@ public:
// Give it back to WX for normal processing.
return Event_Skip;
}, MakeSimpleGuard( Event_Skip ) );
},
// Immediate handler invokes the same high level catch-all as for
// unhandled exceptions, which will also do its own delayed handling
[](AudacityException *pEx){
if (pEx)
wxTheApp->OnExceptionInMainLoop();
else
throw;
return Event_Processed;
},
// So don't duplicate delayed handling:
[](auto){}
);
}
private: