Fixed crash related to audio display losing focus while unloaded. (#98)

Originally committed to SVN as r227.
This commit is contained in:
Rodrigo Braz Monteiro 2006-03-15 23:53:44 +00:00
parent 1723915e3e
commit 55bfefb2d8

View file

@ -1910,7 +1910,7 @@ void AudioDisplay::OnGetFocus(wxFocusEvent &event) {
} }
void AudioDisplay::OnLoseFocus(wxFocusEvent &event) { void AudioDisplay::OnLoseFocus(wxFocusEvent &event) {
if (hasFocus) { if (hasFocus && loaded) {
hasFocus = false; hasFocus = false;
UpdateImage(true); UpdateImage(true);
Refresh(false); Refresh(false);