Permalink
Browse files

MythUIWebBrowser: fix the keyboard toggle message

Somehow the code got merged into the wrong if statement.
  • Loading branch information...
Paul Harrison
Paul Harrison committed Jun 5, 2013
1 parent 0f0de45 commit cd2750d9bce65a3e4cb2b87a56f5a4aba776515f
Showing with 6 additions and 5 deletions.
  1. +6 −5 mythtv/libs/libmythui/mythuiwebbrowser.cpp
@@ -1511,6 +1511,12 @@ bool MythUIWebBrowser::keyPressEvent(QKeyEvent *event)
if (action == "TOGGLEINPUT")
{
m_inputToggled = !m_inputToggled;
if (m_inputToggled)
slotStatusBarMessage(tr("Sending key presses to web page"));
else
slotStatusBarMessage(tr("Sending key presses to MythTV"));
return true;
}
@@ -1519,11 +1525,6 @@ bool MythUIWebBrowser::keyPressEvent(QKeyEvent *event)
{
m_browser->keyPressEvent(event);
if (m_inputToggled)
slotStatusBarMessage(tr("Sending key presses to web page"));
else
slotStatusBarMessage(tr("Sending key presses to MythTV"));
return true;
}

0 comments on commit cd2750d

Please sign in to comment.