Make external hypertext links show a menu before executing.
This commit is contained in:
parent
c0d2052e4b
commit
6bad88e592
|
@ -81,7 +81,12 @@ void SCH_NAVIGATE_TOOL::HypertextCommand( const wxString& href )
|
|||
}
|
||||
else
|
||||
{
|
||||
GetAssociatedDocument( m_frame, href, &m_frame->Prj() );
|
||||
wxMenu menu;
|
||||
|
||||
menu.Append( 1, wxString::Format( _( "Open %s" ), href ) );
|
||||
|
||||
if( m_frame->GetPopupMenuSelectionFromUser( menu ) == 1 )
|
||||
GetAssociatedDocument( m_frame, href, &m_frame->Prj() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue