Fix copy to clipboard by flushing the updated data. (#1623)

This commit is contained in:
Paul Kulchenko
2019-10-31 02:59:14 -07:00
committed by Stefan Csomor
parent 26701fd017
commit 53c5ebedca

View File

@@ -60,7 +60,11 @@ void wxClipboard::Clear()
bool wxClipboard::Flush()
{
return false;
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
wxOSXPasteboard::GetGeneralClipboard()->Flush();
return true;
}
bool wxClipboard::Open()
@@ -105,6 +109,8 @@ bool wxClipboard::AddData( wxDataObject *data )
data->WriteToSink(wxOSXPasteboard::GetGeneralClipboard());
Flush();
m_data = data;
return true;