From f3e393ddb0de0151939d2a6cbcf0acf635df3d64 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 31 May 2011 08:15:01 +0000 Subject: [PATCH] neutrino: fix scrollbar movement on selected last item This effect is observable in moviebrowser. Scrollbar don't move, if you selected the last item. This should fix this. see also: http://www.dbox2-tuning.net/forum/viewtopic.php?p=379439#p379439 thx Gaucho316 for patch git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1498 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4732d300847f54b0c46e764654cfac244fc437ab Author: Thilo Graf Date: 2011-05-31 (Tue, 31 May 2011) Origin message was: ------------------ *neutrino: fix scrollbar movement on selected last item This effect is observable in moviebrowser. Scrollbar don't move, if you selected the last item. This should fix this. see also: http://www.dbox2-tuning.net/forum/viewtopic.php?p=379439#p379439 thx Gaucho316 for patch git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1498 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/widget/listframe.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gui/widget/listframe.cpp b/src/gui/widget/listframe.cpp index 8c1621dcc..a124d993a 100644 --- a/src/gui/widget/listframe.cpp +++ b/src/gui/widget/listframe.cpp @@ -521,9 +521,7 @@ void CListFrame::scrollLineDown(const int lines) refreshLine(m_nSelectedLine); } } else { - m_nCurrentPage = 0; - m_nCurrentLine = m_nSelectedLine = 0; - refreshList(); + setSelectedLine(0); } } @@ -546,9 +544,6 @@ void CListFrame::scrollLineUp(const int lines) refreshLine(m_nSelectedLine); } } else if(m_nSelectedLine == 0) { - //m_nCurrentPage = m_nNrOfPages - 1; - //m_nCurrentLine = m_nSelectedLine = m_nNrOfLines - 1; - //refresh(); setSelectedLine(m_nNrOfLines - 1); } }