Permalink
Browse files

Fixed a bug where pressing ESCAPE when first entering a title or

description search would not exit back to the menu.


git-svn-id: http://svn.mythtv.org/svn/trunk@3038 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
gigem committed Jan 30, 2004
1 parent 8ad2b62 commit baedd66051cbede96f2b2ccb5f20f29b8167d2a1
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythtv/proglist.cpp
@@ -457,6 +457,8 @@ void ProgLister::chooseView(void)
}
else if (type == plTitleSearch || type == plDescSearch)
{
int oldView = curView;
choosePopup = new MythPopupBox(gContext->GetMainWindow(), "");
choosePopup->addLabel(tr("Select Phrase"));
@@ -514,7 +516,7 @@ void ProgLister::chooseView(void)
delete choosePopup;
choosePopup = NULL;
if (viewCount < 1)
if (viewCount < 1 || (oldView < 0 && curView < 0))
reject();
else if (curView < 0)
{

0 comments on commit baedd66

Please sign in to comment.