From f9498426d80344843213d970944e9445de518c75 Mon Sep 17 00:00:00 2001 From: Thomas Goyne <plorkyeran@aegisub.org> Date: Fri, 7 Mar 2014 08:33:47 -0800 Subject: [PATCH] Flush the clipboard on exit Apparently flushing immediately after setting the clipboard sometimes doesn't work. --- aegisub/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 1080e376d..66ac3ac1d 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -289,6 +289,11 @@ int AegisubApp::OnExit() { if (frame) delete frame; + if (wxTheClipboard->Open()) { + wxTheClipboard->Flush(); + wxTheClipboard->Close(); + } + SubtitleFormat::DestroyFormats(); delete config::opt; delete config::mru; -- GitLab