From 098241e403440d7061a62e56525867c55cf0af1a Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sat, 30 Jan 2021 15:43:26 +0000 Subject: [PATCH] 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. --- common/dialog_about/dialog_about.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/dialog_about/dialog_about.cpp b/common/dialog_about/dialog_about.cpp index 359985d4e5..63f23f114f 100644 --- a/common/dialog_about/dialog_about.cpp +++ b/common/dialog_about/dialog_about.cpp @@ -483,6 +483,7 @@ void DIALOG_ABOUT::onCopyVersionInfo( wxCommandEvent& event ) wxString msg_version = GetVersionInfoData( m_titleName ); wxTheClipboard->SetData( new wxTextDataObject( msg_version ) ); + wxTheClipboard->Flush(); // Allow clipboard data to be available after KiCad closes wxTheClipboard->Close(); m_btCopyVersionInfo->SetLabel( _( "Copied..." ) ); }