Ticket #4616: 4616-v1.diff

File 4616-v1.diff, 1.4 KB (added by paulh, 16 years ago)

Possible fix

  • mythmusic/playbackbox.cpp

     
    991991                      "edit_metadata", "music-", "edit metadata");
    992992    if (kDialogCodeRejected != editDialog.exec())
    993993    {
    994         // update the metadata copy stored in all_music
    995         if (gMusicData->all_music->updateMetadata(editMeta->ID(), editMeta))
    996         {
    997             // update the displayed track info
    998             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 changed
    1005                 if (curMeta->ID() == editMeta->ID())
    1006                 {
    1007                     *curMeta = editMeta;
    1008                     updateTrackInfo(curMeta);
    1009                 }
    1010             }
    1011         }
    1012 
    1013994        MythBusyDialog *busy = new MythBusyDialog(
    1014995            QObject::tr("Rebuilding music tree"));
    1015996        busy->start();
     
    10511032
    10521033        GenericTree *node = music_tree_list->getCurrentNode();
    10531034        curMeta = gMusicData->all_music->getMetadata(node->getInt());
     1035        updateTrackInfo(curMeta);
    10541036
    10551037        setShuffleMode(gPlayer->getShuffleMode());
    10561038