Flush the clipboard on exit so that it isn't cleared

Originally committed to SVN as r5957.
This commit is contained in:
Thomas Goyne 2011-12-02 04:35:59 +00:00
parent 59ddcab360
commit 95a329a1e2

View file

@ -40,6 +40,7 @@
#include "config.h"
#ifndef AGI_PRE
#include <wx/clipbrd.h>
#include <wx/config.h>
#include <wx/datetime.h>
#include <wx/filefn.h>
@ -321,6 +322,11 @@ bool AegisubApp::OnInit() {
/// @return
///
int AegisubApp::OnExit() {
if (wxTheClipboard->Open()) {
wxTheClipboard->Flush();
wxTheClipboard->Close();
}
SubtitleFormat::DestroyFormats();
VideoContext::OnExit();
delete plugins;