Ticket #4617: mythmusic-current-title.patch
File mythmusic-current-title.patch, 1.6 KB (added by , 16 years ago) |
---|
-
mythmusic/mythmusic/playbackbox.cpp
608 608 SLOT(byGenre())); 609 609 playlist_popup->addButton(tr("Tracks from current Year"), this, 610 610 SLOT(byYear())); 611 playlist_popup->addButton(tr("Tracks with same Title"), this, 612 SLOT(byTitle())); 611 613 } 612 614 613 615 playlist_popup->ShowPopup(this, SLOT(closePlaylistPopup())); … … 733 735 updatePlaylistFromQuickPlaylist(whereClause); 734 736 } 735 737 738 void PlaybackBoxMusic::byTitle() 739 { 740 if (!playlist_popup || !curMeta) 741 return; 742 743 QString value = formattedFieldValue(curMeta->Title().utf8()); 744 QString whereClause = "WHERE music_songs.name = " + value + 745 " ORDER BY music_artists.artist_name, album_name, track"; 746 closePlaylistPopup(); 747 updatePlaylistFromQuickPlaylist(whereClause); 748 } 749 736 750 void PlaybackBoxMusic::updatePlaylistFromQuickPlaylist(QString whereClause) 737 751 { 738 752 doUpdatePlaylist(whereClause); -
mythmusic/mythmusic/playbackbox.h
93 93 void byAlbum(); 94 94 void byGenre(); 95 95 void byYear(); 96 void byTitle(); 96 97 void fromCD(); 97 98 void showSmartPlaylistDialog(); 98 99 void showSearchDialog();