Ticket #9615: mainmenu_jumppoint_reset_v2.patch

File mainmenu_jumppoint_reset_v2.patch, 669 bytes (added by Jim Stichnoth <stichnot@…>, 13 years ago)
  • mythtv/programs/mythfrontend/main.cpp

    diff --git a/mythtv/programs/mythfrontend/main.cpp b/mythtv/programs/mythfrontend/main.cpp
    index ee63be8..d5cc050 100644
    a b static int internal_play_media(const QString &mrl, const QString &plot, 
    849849
    850850static void gotoMainMenu(void)
    851851{
     852    // Reset the selected button to the first item.
     853    MythThemedMenuState *menu = dynamic_cast<MythThemedMenuState *>
     854        (GetMythMainWindow()->GetMainStack()->GetTopScreen());
     855    if (menu)
     856        menu->m_buttonList->SetItemCurrent(0);
    852857}
    853858
    854859// If the theme specified in the DB is somehow broken, try a standard one: