Ticket #3550: mythmusic-debug.patch
File mythmusic-debug.patch, 4.0 KB (added by , 17 years ago) |
---|
-
mythmusic/mythmusic/playbackbox.cpp
1746 1746 // whether a node is selectable, how it can be ordered (normal, random, 1747 1747 // intelligent, album), etc. 1748 1748 1749 all_playlists->writeTree(playlist_tree);1749 GenericTree *active_playlist_node = all_playlists->writeTree(playlist_tree); 1750 1750 music_tree_list->assignTreeData(playlist_tree); 1751 music_tree_list->setCurrentNode(active_playlist_node); 1751 1752 tree_is_done = true; 1752 1753 } 1753 1754 -
mythmusic/mythmusic/playlist.h
172 172 void setActiveWidget(PlaylistTitle *widget); 173 173 PlaylistTitle* getActiveWidget(void) { return active_widget; } 174 174 175 voidwriteTree(GenericTree *tree_to_write_to);175 GenericTree* writeTree(GenericTree *tree_to_write_to); 176 176 void clearCDList(); 177 177 void addCDTrack(int x); 178 178 void removeCDTrack(int x); -
mythmusic/mythmusic/metadata.cpp
951 951 { 952 952 // 953 953 // Given "paths" and loaded metadata, 954 // build a tree (nodes, lea fs, and all)954 // build a tree (nodes, leaves, and all) 955 955 // that reflects the desired structure 956 956 // of the metadata. This is a structure 957 957 // that makes it easy (and QUICK) to -
mythmusic/mythmusic/playlist.cpp
582 582 583 583 if (filter) 584 584 { 585 all_available_music->clearTree(); 585 586 all_available_music->buildTree(); 586 587 all_available_music->sortTree(); 587 588 } … … 946 947 { 947 948 // Normal track 948 949 Metadata *tmpdata = all_available_music->getMetadata(it->getValue()); 949 if (tmpdata )950 if (tmpdata && tmpdata->isVisible()) 950 951 { 951 952 if (songs.at() == 0) { // first song 952 953 playcountMin = playcountMax = tmpdata->PlayCount(); … … 984 985 { 985 986 // Normal track 986 987 Metadata *tmpdata = all_available_music->getMetadata(it->getValue()); 987 if (tmpdata )988 if (tmpdata && tmpdata->isVisible()) 988 989 { 989 990 QString a_string = QString("%1 ~ %2").arg(tmpdata->FormatArtist()).arg(tmpdata->FormatTitle()); 990 991 GenericTree *added_node = tree_to_write_to->addNode(a_string, it->getValue(), true); … … 1071 1072 return a_counter; 1072 1073 } 1073 1074 1074 voidPlaylistsContainer::writeTree(GenericTree *tree_to_write_to)1075 GenericTree* PlaylistsContainer::writeTree(GenericTree *tree_to_write_to) 1075 1076 { 1076 1077 all_available_music->writeTree(tree_to_write_to); 1077 1078 … … 1127 1128 a_list->writeTree(new_node, 0); 1128 1129 ++iterator; 1129 1130 } 1130 1131 1132 GenericTree* active_playlist_node = subsub_node->findLeaf(); 1133 if(!active_playlist_node) active_playlist_node = subsub_node; 1134 return active_playlist_node; 1131 1135 } 1132 1136 1133 1137 void PlaylistsContainer::save() -
mythmusic/mythmusic/metadata.h
347 347 void buildTree(); 348 348 void printTree(); // debugging 349 349 void sortTree(); 350 inline void clearTree() { m_root_node-> clear(); } 350 351 void writeTree(GenericTree *tree_to_write_to); 351 352 void setSorting(QString a_paths); 352 353 bool putYourselfOnTheListView(TreeCheckItem *where);