Fix potential crash clicking AudioKaraoke
Originally committed to SVN as r818.
This commit is contained in:
parent
ee3238a657
commit
2b27078cf4
1 changed files with 3 additions and 2 deletions
|
@ -443,12 +443,13 @@ void AudioKaraoke::OnMouse(wxMouseEvent &event) {
|
|||
Refresh(false);
|
||||
}
|
||||
// Released left button
|
||||
else if (event.LeftUp()) {
|
||||
else if (event.LeftUp() && HasCapture()) {
|
||||
ReleaseMouse();
|
||||
}
|
||||
// Released right button; make a menu for selecting \k type
|
||||
else if (event.RightUp()) {
|
||||
ReleaseMouse();
|
||||
if (HasCapture())
|
||||
ReleaseMouse();
|
||||
|
||||
AudioKaraokeTagMenu menu(this);
|
||||
PopupMenu(&menu);
|
||||
|
|
Loading…
Reference in a new issue