diff --git a/aegisub/src/dialog_colorpicker.cpp b/aegisub/src/dialog_colorpicker.cpp index 0c06579ee..0eecd890f 100644 --- a/aegisub/src/dialog_colorpicker.cpp +++ b/aegisub/src/dialog_colorpicker.cpp @@ -1483,7 +1483,6 @@ void DialogColorPicker::OnRGBAdjust(wxCommandEvent &evt) wxString data = wxString(_T("rgbadjust(")) + PrettyFloatD(r) + _T(",") + PrettyFloatD(g) + _T(",") + PrettyFloatD(b) + _T(")"); if (wxTheClipboard->Open()) { - wxTheClipboard->UsePrimarySelection(true); wxTheClipboard->SetData(new wxTextDataObject(data)); wxTheClipboard->Close(); } diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index 41fd49825..42b21150d 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -723,7 +723,6 @@ void DialogStyleManager::CopyToClipboard (wxListBox *list, std::vectorOpen()) { - wxTheClipboard->UsePrimarySelection(true); wxTheClipboard->SetData(new wxTextDataObject(data)); wxTheClipboard->Close(); } diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index eb8f5c2f6..e96f84a86 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -438,7 +438,6 @@ void FrameMain::OnMenuOpen (wxMenuEvent &event) { bool can_paste = true; if (wxTheClipboard->Open()) { - wxTheClipboard->UsePrimarySelection(true); can_paste = wxTheClipboard->IsSupported(wxDF_TEXT); wxTheClipboard->Close(); } diff --git a/aegisub/src/subs_grid.cpp b/aegisub/src/subs_grid.cpp index efd1c36ed..7e89b8697 100644 --- a/aegisub/src/subs_grid.cpp +++ b/aegisub/src/subs_grid.cpp @@ -976,7 +976,6 @@ void SubtitlesGrid::CopyLines(wxArrayInt target) { // Send to clipboard if (wxTheClipboard->Open()) { - wxTheClipboard->UsePrimarySelection(true); wxTheClipboard->SetData(new wxTextDataObject(data)); wxTheClipboard->Close(); } diff --git a/aegisub/src/timeedit_ctrl.cpp b/aegisub/src/timeedit_ctrl.cpp index b8c568646..cafc319b8 100644 --- a/aegisub/src/timeedit_ctrl.cpp +++ b/aegisub/src/timeedit_ctrl.cpp @@ -388,7 +388,6 @@ void TimeEdit::CopyTime() { // Time if (wxTheClipboard->Open()) { - wxTheClipboard->UsePrimarySelection(true); wxTheClipboard->SetData(new wxTextDataObject(GetStringSelection())); wxTheClipboard->Close(); } diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 89850dcc5..81dc906c9 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -682,7 +682,6 @@ void VideoDisplay::UpdateSubsRelativeTime() { /// void VideoDisplay::OnCopyToClipboard(wxCommandEvent &event) { if (wxTheClipboard->Open()) { - wxTheClipboard->UsePrimarySelection(true); wxTheClipboard->SetData(new wxBitmapDataObject(wxBitmap(VideoContext::Get()->GetFrame(-1).GetImage(),24))); wxTheClipboard->Close(); }