diff --git a/include/utils/popuphelp.h b/include/utils/popuphelp.h index 0a7517b..532c4c3 100644 --- a/include/utils/popuphelp.h +++ b/include/utils/popuphelp.h @@ -202,7 +202,10 @@ public: wxDataObjectComposite* dataobj = new wxDataObjectComposite(); dataobj->Add(new wxHTMLDataObject(h)); wxTheClipboard->SetData(dataobj); - wxTheClipboard->Close(); + // fix for linux app crush + wxSafeYield(); + wxTheClipboard->Close(); // crush app without wxSafeYield(); + } else {