Skip to content

Commit afbf58d

Browse files
committed
Reset the Reset All Keys jumppoint, too.
After 28a42f2 added a new mythfrontend jump point, it needs to be included in ReloadJumpPoints(). Also adds a comment above InitJumpPoints() to try to make sure others notice the symmetric ReloadJumpPoints() function. (Note that similar treatment is not required for plugin jump points, and there's no similar requirement for new key bindings--only for new key binding contexts.)
1 parent dc6add3 commit afbf58d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mythtv/programs/mythfrontend/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,8 @@ static void setDebugShowNames(void)
12571257
GetMythMainWindow()->GetMainStack()->GetTopScreen()->SetRedraw();
12581258
}
12591259

1260+
// If adding a new jump point, remember to also add a line to clear it in
1261+
// ReloadJumpPoints(), below
12601262
static void InitJumpPoints(void)
12611263
{
12621264
REG_JUMP(QT_TRANSLATE_NOOP("MythControls", "Reload Theme"),
@@ -1340,6 +1342,7 @@ static void ReloadJumpPoints(void)
13401342
mainWindow->ClearJump("Play Disc");
13411343
mainWindow->ClearJump("Toggle Show Widget Borders");
13421344
mainWindow->ClearJump("Toggle Show Widget Names");
1345+
mainWindow->ClearJump("Reset All Keys");
13431346
InitJumpPoints();
13441347
}
13451348

0 commit comments

Comments
 (0)