Skip to content

Commit

Permalink
Watch Recordings: make the menu items consistent for missing recordings
Browse files Browse the repository at this point in the history
This makes the menu shown for recordings that are missing or zero bytes
consistent with those for normal recordings allowing those recording to
be re-scheduled etc.

Fixes #11192.
  • Loading branch information
Paul Harrison committed Jul 21, 2013
1 parent 5bde24f commit 2a7a749
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mythtv/programs/mythfrontend/playbackbox.cpp
Expand Up @@ -3149,17 +3149,17 @@ void PlaybackBox::ShowActionPopup(const ProgramInfo &pginfo)
if ((asFileNotFound == pginfo.GetAvailableStatus()) ||
(asZeroByte == pginfo.GetAvailableStatus()))
{
m_popupMenu->AddItem(tr("Show Recording Details"), SLOT(showProgramDetails()));
m_popupMenu->AddItem(tr("Delete"), SLOT(askDelete()));

if (m_playList.filter(pginfo.MakeUniqueKey()).size())
{
m_popupMenu->AddItem(tr("Remove from Playlist"), SLOT(togglePlayListItem()));
}
else
{
m_popupMenu->AddItem(tr("Add to Playlist"), SLOT(togglePlayListItem()));
}

if (m_playList.size())
m_popupMenu->AddItem(tr("Playlist Options"), NULL, createPlaylistMenu());

m_popupMenu->AddItem(tr("Recording Options"), NULL, createRecordingMenu());

m_popupMenu->AddItem(tr("Delete"), SLOT(askDelete()));

DisplayPopupMenu();

Expand Down

0 comments on commit 2a7a749

Please sign in to comment.