diff --git a/mythtv/libs/libmythui/mythmainwindow.cpp b/mythtv/libs/libmythui/mythmainwindow.cpp
index 7ecb158..d94e12b 100644
a
|
b
|
using namespace std; |
71 | 71 | #include "mythgesture.h" |
72 | 72 | #include "mythuihelper.h" |
73 | 73 | #include "mythdialogbox.h" |
| 74 | #include "myththemedmenu.h" |
74 | 75 | |
75 | 76 | #ifdef USING_VDPAU |
76 | 77 | #include "mythpainter_vdpau.h" |
… |
… |
bool MythMainWindow::TranslateKeyPress(const QString &context, |
1486 | 1487 | d->exitmenucallback = d->jumpMap[keynum]->callback; |
1487 | 1488 | QCoreApplication::postEvent( |
1488 | 1489 | this, new QEvent(MythEvent::kExitToMainMenuEventType)); |
| 1490 | |
| 1491 | // This code has the effect of resetting the selected button |
| 1492 | // to the first item when executing the "Main Menu" jump point |
| 1493 | // from the top-level main menu. |
| 1494 | MythThemedMenuState *menu = dynamic_cast<MythThemedMenuState *> |
| 1495 | (GetMainStack()->GetTopScreen()); |
| 1496 | if (menu) |
| 1497 | menu->m_buttonList->SetItemCurrent(0); |
| 1498 | |
1489 | 1499 | return true; |
1490 | 1500 | } |
1491 | 1501 | |