Ticket #9227: osd-delete-dialog.patch
| File osd-delete-dialog.patch, 2.1 KB (added by , 15 years ago) |
|---|
-
mythtv/libs/libmythtv/tv_play.cpp
4512 4512 if (ctx->player) 4513 4513 ctx->player->SetBookmark(); 4514 4514 ctx->UnlockDeletePlayer(__FILE__, __LINE__); 4515 ShowOSDPromptDeleteRecording(ctx, tr(" Delete this recording?"));4515 ShowOSDPromptDeleteRecording(ctx, tr("Are you sure you want to delete:")); 4516 4516 } 4517 4517 else if (has_action("JUMPTODVDROOTMENU", actions) && isDVD) 4518 4518 { … … 11652 11652 11653 11653 InfoMap infoMap; 11654 11654 ctx->GetPlayingInfoMap(infoMap); 11655 QString message = QString("%1\n%2\n%3")11656 .arg(title).arg(infoMap["title"]).arg(infoMap["timedate"]);11657 11655 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 11658 11669 OSD *osd = GetOSDLock(ctx); 11659 11670 if (osd && (!osd->DialogVisible() || force)) 11660 11671 { … … 11674 11685 "DIALOG_VIDEOEXIT_DELETEANDRERECORD_0"); 11675 11686 osd->DialogAddButton(tr("Yes, delete it"), 11676 11687 "DIALOG_VIDEOEXIT_JUSTDELETE_0"); 11677 osd->DialogAddButton(tr("No, keep it , I changed my mind"),11688 osd->DialogAddButton(tr("No, keep it"), 11678 11689 "DIALOG_VIDEOEXIT_JUSTEXIT_0", false, true); 11679 11690 } 11680 11691 … … 11713 11724 else if (action == "CONFIRMDELETE") 11714 11725 { 11715 11726 hide = false; 11716 ShowOSDPromptDeleteRecording(ctx, tr(" Delete this recording?"),11727 ShowOSDPromptDeleteRecording(ctx, tr("Are you sure you want to delete:"), 11717 11728 true); 11718 11729 } 11719 11730 else if (action == "SAVEPOSITIONANDEXIT" && bookmark_ok)
