Skip to content

Commit

Permalink
When the last recording is deleted, don't die trying to find a valid …
Browse files Browse the repository at this point in the history
…recgroup.

Refs 815d4a1
  • Loading branch information
jpoet committed Jan 14, 2020
1 parent a70fa1d commit a315cd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -1637,6 +1637,7 @@ bool PlaybackBox::UpdateUILists(void)
ViewTitleSort titleSort = (ViewTitleSort)gCoreContext->GetNumSetting(
"DisplayGroupTitleSort", TitleSortAlphabetical);

bool isAllProgsGroup = (m_recGroup == "All Programs");
QMap<QString, QString> sortedList;
QMap<int, QString> searchRule;
QMap<int, int> recidEpisodes;
Expand Down Expand Up @@ -1667,7 +1668,6 @@ bool PlaybackBox::UpdateUILists(void)

bool isCategoryFilter = (m_recGroupType[m_recGroup] == "category");
bool isUnknownCategory = (m_recGroup == tr("Unknown"));
bool isAllProgsGroup = (m_recGroup == "All Programs");
bool isDeletedGroup = (m_recGroup == "Deleted");
bool isLiveTvGroup = (m_recGroup == "LiveTV");

Expand Down Expand Up @@ -1828,7 +1828,11 @@ bool PlaybackBox::UpdateUILists(void)
m_progLists[""];
m_titleList << "";
m_playList.clear();
SelectNextRecGroup();
if (!isAllProgsGroup)
SelectNextRecGroup();

UpdateUIRecGroupList();
UpdateUIGroupList(groupSelPref);

m_isFilling = false;
return false;
Expand Down

0 comments on commit a315cd6

Please sign in to comment.