Fixed issues reported by Coverity.

This commit is contained in:
Maciej Suminski
2015-07-30 13:49:35 +02:00
parent fb29373b4c
commit 094c286024
3 changed files with 21 additions and 3 deletions
+9 -1
View File
@@ -182,7 +182,15 @@ void CONTEXT_MENU::Clear()
void CONTEXT_MENU::UpdateAll()
{
m_update_handler();
try
{
m_update_handler();
}
catch( std::exception& e )
{
std::cerr << "CONTEXT_MENU error running update handler: " << e.what() << std::endl;
}
updateHotKeys();
runOnSubmenus( boost::bind( &CONTEXT_MENU::UpdateAll, _1 ) );