Permalink
Browse files

fixed: Make sure we can cancel the resume ask menu.

  • Loading branch information...
1 parent 9236711 commit 56db10ad2be725c674c852fff119b574fed779fa jmarshallnz committed with elan Sep 10, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/GUIDialogContextMenu.cpp
@@ -653,7 +653,8 @@ int CGUIDialogContextMenu::ShowAndGetChoice(const vector<CStdString> &choices, c
pMenu->SetPosition(pos.x - pMenu->GetWidth() / 2, pos.y - pMenu->GetHeight() / 2);
pMenu->DoModal();
- return pMenu->GetButton();
+ if (pMenu->GetButton() > 0)
+ return pMenu->GetButton();
}
return 0;
}

0 comments on commit 56db10a

Please sign in to comment.