mirror of https://github.com/odrling/Aegisub
Fixed crash related to audio display losing focus while unloaded. (#98)
Originally committed to SVN as r227.
This commit is contained in:
parent
1723915e3e
commit
55bfefb2d8
|
@ -1910,7 +1910,7 @@ void AudioDisplay::OnGetFocus(wxFocusEvent &event) {
|
|||
}
|
||||
|
||||
void AudioDisplay::OnLoseFocus(wxFocusEvent &event) {
|
||||
if (hasFocus) {
|
||||
if (hasFocus && loaded) {
|
||||
hasFocus = false;
|
||||
UpdateImage(true);
|
||||
Refresh(false);
|
||||
|
|
Loading…
Reference in New Issue