Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mythtv-setup: Fix scrolling in the xmltv config terminal screen.

This allows you to both scroll up or down in the terminal and to escape out
of it. It also always makes sure the last line of the terminal output is
visible. Fixes #7962.

This is supposed to be fixed in the settings re-write but since it's been
delayed to after 0.25 let's at least make it usable in the mean time.
(cherry picked from commit 9861cf2)
  • Loading branch information...
commit 05e7a23e226d51ed4397ba6e8cce54b7c273d4ed 1 parent 7c2c249
Paul Harrison authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmyth/mythterminal.cpp
5 mythtv/libs/libmyth/mythterminal.cpp
View
@@ -99,6 +99,7 @@ void MythTerminal::AddText(const QString &_str)
{
lbwidget->setEnabled(true);
lbwidget->setFocus();
+ lbwidget->setCurrentRow(lbwidget->count() - 1);
}
}
@@ -169,7 +170,9 @@ bool MythTerminalKeyFilter::eventFilter(QObject *obj, QEvent *event)
false);
if (!handled && !actions.isEmpty())
{
- if (actions.contains("LEFT") || actions.contains("RIGHT"))
+ if (actions.contains("LEFT") || actions.contains("RIGHT") ||
+ actions.contains("UP") || actions.contains("DOWN") ||
+ actions.contains("ESCAPE"))
{
return QObject::eventFilter(obj, event);
}
Please sign in to comment.
Something went wrong with that request. Please try again.