Ticket #10710: mythmusic_keybinding_for_play.patch

File mythmusic_keybinding_for_play.patch, 1.2 KB (added by trebor_s@…, 8 years ago)

Use a keybinding for the functionality instead of play

  • mythplugins/mythmusic/mythmusic/main.cpp

    diff --git a/mythplugins/mythmusic/mythmusic/main.cpp b/mythplugins/mythmusic/mythmusic/main.cpp
    index ff36cc4..14e5515 100644
    a b static void setupKeys(void) 
    604604    REG_KEY("Music", "SWITCHTOVISUALISER", QT_TRANSLATE_NOOP("MythControls",
    605605        "Switch to the fullscreen visualiser view"), "");
    606606
     607    REG_KEY("Music", "ADDTRACKSANDPLAY", QT_TRANSLATE_NOOP("MythControls",
     608        "Add selected tracks to playlist and start playback"), "");
    607609
    608610#ifdef FIXME
    609611// FIXME need to find a way to stop the media monitor jumping to the main menu before
  • mythplugins/mythmusic/mythmusic/playlisteditorview.cpp

    diff --git a/mythplugins/mythmusic/mythmusic/playlisteditorview.cpp b/mythplugins/mythmusic/mythmusic/playlisteditorview.cpp
    index 9c730da..8684150 100644
    a b bool PlaylistEditorView::keyPressEvent(QKeyEvent *event) 
    449449            if (item)
    450450                treeItemClicked(item);
    451451        }
    452         else if (action == "PLAY")
     452        else if (action == "ADDTRACKSANDPLAY")
    453453        {
    454454            int trackCount = gPlayer->getPlaylist()->getSongs().count();
    455455