Ticket #4616: 4616-v1.diff
File 4616-v1.diff, 1.4 KB (added by , 16 years ago) |
---|
-
mythmusic/playbackbox.cpp
991 991 "edit_metadata", "music-", "edit metadata"); 992 992 if (kDialogCodeRejected != editDialog.exec()) 993 993 { 994 // update the metadata copy stored in all_music995 if (gMusicData->all_music->updateMetadata(editMeta->ID(), editMeta))996 {997 // update the displayed track info998 if (node)999 {1000 bool errorFlag;1001 node->setString(gMusicData->all_music->getLabel(editMeta->ID(), &errorFlag));1002 music_tree_list->refresh();1003 1004 // make sure the track hasn't changed1005 if (curMeta->ID() == editMeta->ID())1006 {1007 *curMeta = editMeta;1008 updateTrackInfo(curMeta);1009 }1010 }1011 }1012 1013 994 MythBusyDialog *busy = new MythBusyDialog( 1014 995 QObject::tr("Rebuilding music tree")); 1015 996 busy->start(); … … 1051 1032 1052 1033 GenericTree *node = music_tree_list->getCurrentNode(); 1053 1034 curMeta = gMusicData->all_music->getMetadata(node->getInt()); 1035 updateTrackInfo(curMeta); 1054 1036 1055 1037 setShuffleMode(gPlayer->getShuffleMode()); 1056 1038