Kaydet (Commit) 3e4604b4 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#69444 additionally care from zero recently-used items case

Change-Id: I45c68dd7cac0a6666401ae4833b6ae090882659c
üst f51e79aa
...@@ -568,6 +568,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) ...@@ -568,6 +568,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
switch ( aKeyCode.GetCode() ) switch ( aKeyCode.GetCode() )
{ {
case KEY_RIGHT: case KEY_RIGHT:
if (!mFilteredItemList.empty())
{ {
if ( bFoundLast && nLastPos + 1 < mFilteredItemList.size() ) if ( bFoundLast && nLastPos + 1 < mFilteredItemList.size() )
{ {
...@@ -579,6 +580,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) ...@@ -579,6 +580,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
} }
break; break;
case KEY_LEFT: case KEY_LEFT:
if (!mFilteredItemList.empty())
{ {
if ( nLastPos > 0 ) if ( nLastPos > 0 )
{ {
...@@ -590,6 +592,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) ...@@ -590,6 +592,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
} }
break; break;
case KEY_DOWN: case KEY_DOWN:
if (!mFilteredItemList.empty())
{ {
if ( bFoundLast ) if ( bFoundLast )
{ {
...@@ -614,6 +617,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) ...@@ -614,6 +617,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt )
} }
break; break;
case KEY_UP: case KEY_UP:
if (!mFilteredItemList.empty())
{ {
if ( nLastPos >= mnCols ) if ( nLastPos >= mnCols )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment