void FOOTPRINT_VIEWER_FRAME::DClickOnFootprintList( wxCommandEvent& event ) { if( IsModal() ) { // @todo(DICK) ExportSelectedFootprint( event ); // Prevent the double click from being as a single mouse button release // event in the parent window which would cause the part to be parked // rather than staying in move mode. // Remember the mouse button will be released in the parent window // thus creating a mouse button release event which should be ignored PCB_EDIT_FRAME* pcbframe = dynamic_cast<PCB_EDIT_FRAME*>( GetParent() ); // The parent may not be the board editor: if( pcbframe ) { pcbframe->SkipNextLeftButtonReleaseEvent(); } } }