Ticket #4222: 073-musicselect.patch

File 073-musicselect.patch, 967 bytes (added by Bill <cizek@…>, 13 years ago)
  • mythplugins/mythmusic/mythmusic/playbackbox.cpp

    old new  
    20672067        }
    20682068    }
    20692069
    2070     GenericTree *node = music_tree_list->getCurrentNode();
    2071     if (node && node->childCount() > 0)
    2072         return;
    2073 
    20742070    if (attributes->at(0) == 1)
    20752071    {
    20762072        //  It's a track
     2073        GenericTree *currentnode = music_tree_list->getCurrentNode();
     2074        GenericTree *activenode = currentnode;
     2075        if (currentnode && currentnode->childCount() > 0) {
     2076             music_tree_list->syncCurrentWithActive();
     2077             activenode = music_tree_list->getCurrentNode();
     2078        }
    20772079
    20782080        curMeta = all_music->getMetadata(node_int);
    20792081
     
    21032105        else
    21042106            play();
    21052107
     2108        if (activenode != currentnode)
     2109            music_tree_list->setCurrentNode(currentnode);
     2110   
     2111
    21062112    }
    21072113    else
    21082114    {