Fix a Coverity report (catches an unhandled exception).

This commit is contained in:
Maciej Suminski 2015-09-01 11:32:23 +02:00
parent 8b8098d228
commit 24e7f961b9
1 changed files with 8 additions and 1 deletions

View File

@ -55,8 +55,15 @@ CONTEXT_MENU* CONDITIONAL_MENU::Generate( SELECTION& aSelection )
{
const SELECTION_CONDITION& cond = it->Condition();
if( !cond( aSelection ) )
try
{
if( !cond( aSelection ) )
continue;
}
catch( std::exception& e )
{
continue;
}
switch( it->Type() )
{