From 6bf986a63f7d8d44c5ba54ae753a8ac1fa1c9247 Mon Sep 17 00:00:00 2001 From: Thomas Goyne 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 2f82210b3..004f21d61 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -285,6 +285,11 @@ int AegisubApp::OnExit() { if (frame) delete frame; + if (wxTheClipboard->Open()) { + wxTheClipboard->Flush(); + wxTheClipboard->Close(); + } + SubtitleFormat::DestroyFormats(); delete config::opt; delete config::mru;