mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 02:15:19 +02:00
Fix text in log viewer disappearing when pressing alt-right
This commit is contained in:
parent
b1eedf6992
commit
47b098cce6
@ -144,7 +144,8 @@ void TextDialog::exec() {
|
|||||||
if (firstRow + rowsPerPage*2 -1 < text->size()) {
|
if (firstRow + rowsPerPage*2 -1 < text->size()) {
|
||||||
firstRow += rowsPerPage-1;
|
firstRow += rowsPerPage-1;
|
||||||
} else {
|
} else {
|
||||||
firstRow = max(0ul, (unsigned long) (text->size() - rowsPerPage));
|
firstRow = text->size() < rowsPerPage ?
|
||||||
|
0 : text->size() - rowsPerPage;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InputManager::SETTINGS:
|
case InputManager::SETTINGS:
|
||||||
|
Loading…
Reference in New Issue
Block a user