Skip to content
Permalink
Browse files

Editor: Show notification message for a new cut.

This should make it clear that something happened when a new cut is
added (even if the user doesn't notice the word "cut" or the mark on the
edit OSD).
  • Loading branch information...
sphery committed Jan 26, 2011
1 parent f986c9b commit 0a17efad1fc6eea7bfd5d77178645c658136b0c3
Showing with 8 additions and 0 deletions.
  1. +8 −0 mythtv/libs/libmythtv/mythplayer.cpp
@@ -3673,6 +3673,7 @@ bool MythPlayer::HandleProgramEditorActions(QStringList &actions,
else if (action == ACTION_SELECT)
{
deleteMap.NewCut(frame, totalFrames);
SetOSDMessage(QObject::tr("New cut added."), kOSDTimeout_Short);
refresh = true;
}
else if (action == "DELETE")
@@ -3704,8 +3705,15 @@ bool MythPlayer::HandleProgramEditorActions(QStringList &actions,
refresh = false;
}
else
{
handled = deleteMap.HandleAction(action, frame, framesPlayed,
totalFrames, video_frame_rate);
if (handled && (action == "CUTTOBEGINNING" ||
action == "CUTTOEND" || action == "NEWCUT"))
{
SetOSDMessage(QObject::tr("New cut added."), kOSDTimeout_Short);
}
}
}

if (handled && refresh)

0 comments on commit 0a17efa

Please sign in to comment.
You can’t perform that action at this time.