Skip to content
Permalink
Browse files

Fixes #12586 - Jump Points not working when a MythNotification is dis…

…played.
  • Loading branch information...
bennettpeter committed Jun 24, 2017
1 parent 4b88628 commit f5fb29daf9efc8d683fc6452a0c2fa9953a1e340
Showing with 7 additions and 0 deletions.
  1. +7 −0 mythtv/libs/libmythui/mythmainwindow.cpp
@@ -1673,6 +1673,13 @@ void MythMainWindow::ExitToMainMenu(void)
QKeyEvent *key = new QKeyEvent(QEvent::KeyPress, d->escapekey,
Qt::NoModifier);
QCoreApplication::postEvent(this, key);
MythNotificationCenter *nc = MythNotificationCenter::GetInstance();
// Notifications have their own stack. We need to continue
// the propagation of the escape here if there are notifications.
int num = nc->DisplayedNotifications();
if (num > 0)
QCoreApplication::postEvent(
this, new QEvent(MythEvent::kExitToMainMenuEventType));
}
return;
}

0 comments on commit f5fb29d

Please sign in to comment.
You can’t perform that action at this time.