Ticket #1287: 0-changetree.patch

File 0-changetree.patch, 811 bytes (added by eskil <myth@…>, 18 years ago)

allow dynamic change of tree layout

  • mythmusic/mythmusic/metadata.cpp

     
    708815    //  How should we sort?
    709816    setSorting(path_assignment);
    710817
    711     MusicNode::SetStaticData(startdir, paths);
    712 
    713818    root_node = new MusicNode("root", tree_levels, 0);
    714819
    715820    //
     
    12321337void AllMusic::setSorting(QString a_paths)
    12331338{
    12341339    paths = a_paths;
     1340    MusicNode::SetStaticData(startdir, paths);
    12351341    if (paths == "directory")
     1342    {
     1343        tree_levels.clear();
    12361344        return;
     1345    }
    12371346    else
     1347    {
    12381348        tree_levels = QStringList::split(" ", paths);
     1349    }
    12391350
    12401351    //  Error checking
    12411352    QStringList::const_iterator it = tree_levels.begin();