Compare commits

..

No commits in common. "cd2b2ba624565f8905ef511f754fefe8296d2ee8" and "e5d250556fcb586f3f136a83e4a3fad3d9b14ac8" have entirely different histories.

2 changed files with 5 additions and 9 deletions

View File

@ -292,9 +292,7 @@ void ScreenManager::displayNextView()
{
_forceRefresh = true;
_error = OK;
if(isListEmpty(_viewLinkedList))return;
if(_currentView == NO_CURRENT_VIEW)
if(_currentView == NO_CURRENT_VIEW && !isListEmpty(_viewLinkedList))
{
_currentView = _viewLinkedList;
}
@ -303,7 +301,7 @@ void ScreenManager::displayNextView()
_currentView = _currentView->next;
}
//End of the views, we cycle again :)
else if(isListEmpty(_currentView->next))
else if(isListEmpty(_currentView->next) && !isListEmpty(_viewLinkedList))
{
_currentView = _viewLinkedList;
}
@ -325,9 +323,7 @@ void ScreenManager::displayPreviousView()
{
_forceRefresh = true;
_error = OK;
if(isListEmpty(_tail))return;
if(_currentView == NO_CURRENT_VIEW)
if(_currentView == NO_CURRENT_VIEW && !isListEmpty(_tail))
{
_currentView = _tail;
}
@ -336,7 +332,7 @@ void ScreenManager::displayPreviousView()
_currentView = _currentView->previous;
}
//End of the views, we cycle again :)
else if(isListEmpty(_currentView->previous))
else if(isListEmpty(_currentView->previous) && !isListEmpty(_tail))
{
_currentView = _tail;
}