Skip to content

Commit

Permalink
TV: Minor code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Nov 22, 2011
1 parent bd16812 commit fba8bf2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -3302,11 +3302,12 @@ bool TV::eventFilter(QObject *o, QEvent *e)
{
// We want to intercept all resize events sent to the main window
if ((e->type() == QEvent::Resize))
return (GetMythMainWindow()!=o)?false:event(e);
return (GetMythMainWindow()!= o) ? false : event(e);

// We want to intercept all KeyPress events unless ignoreKeyPresses is set
// Intercept keypress events unless they need to be handled by a main UI
// screen (e.g. GuideGrid, ProgramFinder)
if (QEvent::KeyPress == e->type())
return ignoreKeyPresses?false:event(e);
return ignoreKeyPresses ? false : event(e);

if (e->type() == MythEvent::MythEventMessage ||
e->type() == MythEvent::MythUserMessage ||
Expand Down

0 comments on commit fba8bf2

Please sign in to comment.