Ticket #1082: prevep-title.diff
File prevep-title.diff, 1.7 KB (added by , 20 years ago) |
---|
-
libs/libmythtv/previouslist.h
58 58 QStringList viewTextList; 59 59 60 60 int curItem; 61 bool titleMatch; ///< do all the matches have the same title? 61 62 ProgramList itemList; 62 ProgramList schedList;63 63 64 64 XMLParse *theme; 65 65 QDomElement xmldata; -
libs/libmythtv/previouslist.cpp
485 518 itemList.FromOldRecorded(sql, bindings); 486 519 487 520 vector<ProgramInfo *> sortedList; 521 522 if (itemList.count() <= 1) titleMatch = false; 523 else { 524 titleMatch = true; 525 ProgramList::iterator j = itemList.begin(); 526 QString commonTitle = (*j)->title; 527 while (titleMatch && j != itemList.end()) { 528 if (commonTitle != (*j)->title) titleMatch = false; 529 j++; 530 } 531 } 532 488 533 while (itemList.count()) 489 534 { 490 535 s = itemList.take(); 491 s->sortTitle = s->title; 536 if (titleMatch) s->sortTitle = s->title; 537 else s->sortTitle = s->subtitle; 492 538 s->sortTitle.remove(QRegExp("^(The |A |An )")); 493 539 sortedList.push_back(s); 494 540 } … … 580 630 581 631 if (pi->subtitle == "") 582 632 tmptitle = pi->title; 633 else if (titleMatch) 634 tmptitle = pi->subtitle; 583 635 else 584 636 { 585 637 tmptitle = QString("%1 - \"%2\"")