From 95a329a1e27879aeb8793dbc4eff4d156d230416 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 2 Dec 2011 04:35:59 +0000 Subject: [PATCH] Flush the clipboard on exit so that it isn't cleared Originally committed to SVN as r5957. --- aegisub/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 3af405b9c..b8771885c 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -40,6 +40,7 @@ #include "config.h" #ifndef AGI_PRE +#include #include #include #include @@ -321,6 +322,11 @@ bool AegisubApp::OnInit() { /// @return /// int AegisubApp::OnExit() { + if (wxTheClipboard->Open()) { + wxTheClipboard->Flush(); + wxTheClipboard->Close(); + } + SubtitleFormat::DestroyFormats(); VideoContext::OnExit(); delete plugins;