void TopWindow::processEvent( EvtMenu &rEvtMenu ) { Popup *pPopup = m_rWindowManager.getActivePopup(); // We should never receive a menu event when there is no active popup! if( pPopup == NULL ) { msg_Warn( getIntf(), "unexpected menu event, ignoring" ); return; } pPopup->handleEvent( rEvtMenu ); }