Ticket #9227: osd-delete-dialog.patch

File osd-delete-dialog.patch, 2.1 KB (added by John Veness <John.Veness.mythtv@…>, 15 years ago)
  • mythtv/libs/libmythtv/tv_play.cpp

     
    45124512        if (ctx->player)
    45134513            ctx->player->SetBookmark();
    45144514        ctx->UnlockDeletePlayer(__FILE__, __LINE__);
    4515         ShowOSDPromptDeleteRecording(ctx, tr("Delete this recording?"));
     4515        ShowOSDPromptDeleteRecording(ctx, tr("Are you sure you want to delete:"));
    45164516    }
    45174517    else if (has_action("JUMPTODVDROOTMENU", actions) && isDVD)
    45184518    {
     
    1165211652
    1165311653    InfoMap infoMap;
    1165411654    ctx->GetPlayingInfoMap(infoMap);
    11655     QString message = QString("%1\n%2\n%3")
    11656         .arg(title).arg(infoMap["title"]).arg(infoMap["timedate"]);
    1165711655
     11656    QString extra;
     11657
     11658    if (!infoMap["subtitle"].isEmpty())
     11659    {
     11660        extra = QString('\n') + infoMap["subtitle"];
     11661        int maxll = max(infoMap["title"].length(), 20);
     11662        if (extra.length() > maxll)
     11663            extra = extra.left(maxll - 3) + "...";
     11664    }
     11665
     11666    QString message = QString("%1\n%2%3\n%4")
     11667        .arg(title).arg(infoMap["title"]).arg(extra).arg(infoMap["timedate"]);
     11668
    1165811669    OSD *osd = GetOSDLock(ctx);
    1165911670    if (osd && (!osd->DialogVisible() || force))
    1166011671    {
     
    1167411685                                 "DIALOG_VIDEOEXIT_DELETEANDRERECORD_0");
    1167511686            osd->DialogAddButton(tr("Yes, delete it"),
    1167611687                                 "DIALOG_VIDEOEXIT_JUSTDELETE_0");
    11677             osd->DialogAddButton(tr("No, keep it, I changed my mind"),
     11688            osd->DialogAddButton(tr("No, keep it"),
    1167811689                                 "DIALOG_VIDEOEXIT_JUSTEXIT_0", false, true);
    1167911690        }
    1168011691
     
    1171311724    else if (action == "CONFIRMDELETE")
    1171411725    {
    1171511726        hide = false;
    11716         ShowOSDPromptDeleteRecording(ctx, tr("Delete this recording?"),
     11727        ShowOSDPromptDeleteRecording(ctx, tr("Are you sure you want to delete:"),
    1171711728                                     true);
    1171811729    }
    1171911730    else if (action == "SAVEPOSITIONANDEXIT" && bookmark_ok)