mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
fix bug clipboard for linux
This commit is contained in:
parent
87c6d4a7ec
commit
42c20fdf53
1 changed files with 2 additions and 7 deletions
|
|
@ -77,13 +77,8 @@ public:
|
|||
if (wxTheClipboard->Open())
|
||||
{
|
||||
wxString h = hist[hist.size() - 1];
|
||||
// Добавляем данные (можно добавить несколько форматов, если нужно)
|
||||
wxDataObjectComposite* dataobj = new wxDataObjectComposite();
|
||||
dataobj->Add(new wxHTMLDataObject(h));
|
||||
wxTheClipboard->SetData(dataobj);
|
||||
// fix for linux app crush
|
||||
wxSafeYield();
|
||||
wxTheClipboard->Close(); // crush app without wxSafeYield();
|
||||
wxTheClipboard->SetData(new wxHTMLDataObject(h));
|
||||
wxTheClipboard->Close();
|
||||
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue