Ensure clipboard data is available after KiCad closes

Always Flush() after SetData()
This commit is contained in:
Roberto Fernandez Bautista
2021-05-03 19:38:31 +01:00
parent 5822cd85c4
commit ae009e0758
9 changed files with 10 additions and 0 deletions
+1
View File
@@ -696,6 +696,7 @@ void BM2CMP_FRAME::OnExportToClipboard( wxCommandEvent& event )
// This data objects are held by the clipboard,
// so do not delete them in the app.
wxTheClipboard->SetData( new wxTextDataObject( buffer.c_str() ) );
wxTheClipboard->Flush(); // Allow data to be available after closing KiCad
wxTheClipboard->Close();
}
else