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 1009aca696
commit f9498426d8

View file

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