About->Version info. Allow clipboard data to be available after closing KiCad.

Fixes a bug in GTK that erased the data on the clipboard after exiting KiCad.
This commit is contained in:
Roberto Fernandez Bautista 2021-01-30 15:43:26 +00:00 committed by Jon Evans
parent 9aedeae5c3
commit 098241e403
1 changed files with 1 additions and 0 deletions

View File

@ -483,6 +483,7 @@ void DIALOG_ABOUT::onCopyVersionInfo( wxCommandEvent& event )
wxString msg_version = GetVersionInfoData( m_titleName ); wxString msg_version = GetVersionInfoData( m_titleName );
wxTheClipboard->SetData( new wxTextDataObject( msg_version ) ); wxTheClipboard->SetData( new wxTextDataObject( msg_version ) );
wxTheClipboard->Flush(); // Allow clipboard data to be available after KiCad closes
wxTheClipboard->Close(); wxTheClipboard->Close();
m_btCopyVersionInfo->SetLabel( _( "Copied..." ) ); m_btCopyVersionInfo->SetLabel( _( "Copied..." ) );
} }