forked from mia/Aegisub
Flush the clipboard on exit so that it isn't cleared
Originally committed to SVN as r5957.
This commit is contained in:
parent
59ddcab360
commit
95a329a1e2
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifndef AGI_PRE
|
#ifndef AGI_PRE
|
||||||
|
#include <wx/clipbrd.h>
|
||||||
#include <wx/config.h>
|
#include <wx/config.h>
|
||||||
#include <wx/datetime.h>
|
#include <wx/datetime.h>
|
||||||
#include <wx/filefn.h>
|
#include <wx/filefn.h>
|
||||||
|
@ -321,6 +322,11 @@ bool AegisubApp::OnInit() {
|
||||||
/// @return
|
/// @return
|
||||||
///
|
///
|
||||||
int AegisubApp::OnExit() {
|
int AegisubApp::OnExit() {
|
||||||
|
if (wxTheClipboard->Open()) {
|
||||||
|
wxTheClipboard->Flush();
|
||||||
|
wxTheClipboard->Close();
|
||||||
|
}
|
||||||
|
|
||||||
SubtitleFormat::DestroyFormats();
|
SubtitleFormat::DestroyFormats();
|
||||||
VideoContext::OnExit();
|
VideoContext::OnExit();
|
||||||
delete plugins;
|
delete plugins;
|
||||||
|
|
Loading…
Reference in a new issue