Flush the clipboard on exit

Apparently flushing immediately after setting the clipboard sometimes
doesn't work.
This commit is contained in:
Thomas Goyne 2014-03-07 08:33:47 -08:00
parent e37e4b8231
commit 6bf986a63f
1 changed files with 5 additions and 0 deletions

View File

@ -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;