Permalink
Browse files

Unpause playback when clearing the Delete Recording OSD dialog (if we

paused it to show the dialog).

Refs #9228


git-svn-id: http://svn.mythtv.org/svn/trunk@27254 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 369cb64 commit 3eeb6bf153bfef9ee89b1206ec97e78046c7171e Mark Kendall committed Nov 17, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 mythtv/libs/libmythtv/tv_play.cpp
@@ -9728,6 +9728,10 @@ void TV::OSDDialogEvent(int result, QString text, QString action)
else if (valid && desc[0] == "DELETE")
{
}
+ else if (valid && desc[0] == "PLAY")
+ {
+ DoPlay(actx);
+ }
else
{
VERBOSE(VB_IMPORTANT, "Unrecognised dialog event.");
@@ -11700,7 +11704,8 @@ void TV::ShowOSDPromptDeleteRecording(PlayerContext *ctx, QString title,
ClearOSD(ctx);
- if (!ctx->paused)
+ bool paused = ctx->paused;
+ if (!paused)
DoTogglePause(ctx, false);
InfoMap infoMap;
@@ -11729,6 +11734,8 @@ void TV::ShowOSDPromptDeleteRecording(PlayerContext *ctx, QString title,
"DIALOG_VIDEOEXIT_JUSTDELETE_0");
osd->DialogAddButton(tr("No, keep it, I changed my mind"),
"DIALOG_VIDEOEXIT_JUSTEXIT_0", false, true);
+ if (!paused)
+ osd->DialogBack("", "DIALOG_PLAY_0_0", true);
}
QMutexLocker locker(&timerIdLock);

0 comments on commit 3eeb6bf

Please sign in to comment.