Fix a crash reported in r4671, plus a fix related to issue 1523 i forgot a month ago >.>

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4677 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s 2009-12-11 00:03:56 +00:00
parent 6bea0a2f53
commit 7c481d179c
2 changed files with 2 additions and 1 deletions

View File

@ -721,7 +721,7 @@ void CGameListCtrl::OnMouseMotion(wxMouseEvent& event)
{
if (subitem == COLUMN_EMULATION_STATE)
{
if (toolTip || lastItem == item) {
if (toolTip || lastItem == item || this != FindFocus()) {
event.Skip();
return;
}

View File

@ -1049,6 +1049,7 @@ void CISOProperties::PatchButtonClicked(wxCommandEvent& event)
break;
case ID_REMOVEPATCH:
onFrame.erase(onFrame.begin() + Patches->GetSelection());
Patches->Delete(Cheats->GetSelection());
break;
}