Fix a Coverity report (catches an unhandled exception).
This commit is contained in:
parent
8b8098d228
commit
24e7f961b9
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue