diff options
author | chriszero <zerov83@gmail.com> | 2015-05-23 20:24:17 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-05-23 20:24:17 +0200 |
commit | 3bb1c162515089e5f20300029095edef2c1a2387 (patch) | |
tree | ff673d332049757784ed31f8cb6d36c9c94a7475 /viewGridNavigator.cpp | |
parent | 0ca20c1d4ff9816ccf27ccdcce5a860af729e1c1 (diff) | |
download | vdr-plugin-plex-3bb1c162515089e5f20300029095edef2c1a2387.tar.gz vdr-plugin-plex-3bb1c162515089e5f20300029095edef2c1a2387.tar.bz2 |
More error handling if plexserver is gone or not availiable.
Diffstat (limited to 'viewGridNavigator.cpp')
-rw-r--r-- | viewGridNavigator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index f8d71c9..83c86e3 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -152,7 +152,7 @@ void cViewGridNavigator::SetGridDimensions(int rows, int columns) bool cViewGridNavigator::NavigateDown() { - if (m_activeElementIter == m_vElements.end() - 1) return false; + if (m_setIterator || m_activeElementIter == m_vElements.end() - 1) return false; auto next = m_activeElementIter + m_columns; if(next >= m_vElements.end()) next = m_vElements.end()-1; @@ -169,7 +169,7 @@ bool cViewGridNavigator::NavigateDown() bool cViewGridNavigator::NavigateUp() { - if (m_activeElementIter == m_vElements.begin()) return false; + if (m_setIterator || m_activeElementIter == m_vElements.begin()) return false; auto next = m_activeElementIter - m_columns; if(next < m_vElements.begin()) next = m_vElements.begin(); @@ -186,7 +186,7 @@ bool cViewGridNavigator::NavigateUp() bool cViewGridNavigator::NavigateLeft() { - if (m_activeElementIter == m_vElements.begin()) return false; + if (m_setIterator || m_activeElementIter == m_vElements.begin()) return false; auto next = m_activeElementIter - 1; if(next < m_vElements.begin()) next = m_vElements.begin(); @@ -204,7 +204,7 @@ bool cViewGridNavigator::NavigateLeft() bool cViewGridNavigator::NavigateRight() { - if (m_activeElementIter == m_vElements.end() - 1) return false; + if (m_setIterator || m_activeElementIter == m_vElements.end() - 1) return false; auto next = m_activeElementIter + 1; if(next >= m_vElements.end()) next = m_vElements.end()-1; |