forked from mia/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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue