git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d1f62f
)
remove debug
author
Felix Domke
<tmbinc@elitedvb.net>
Mon, 27 Feb 2006 20:36:45 +0000
(20:36 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Mon, 27 Feb 2006 20:36:45 +0000
(20:36 +0000)
lib/gui/elistbox.cpp
patch
|
blob
|
history
diff --git
a/lib/gui/elistbox.cpp
b/lib/gui/elistbox.cpp
index
747733d
..
09d5ec2
100644
(file)
--- a/
lib/gui/elistbox.cpp
+++ b/
lib/gui/elistbox.cpp
@@
-159,49
+159,37
@@
void eListbox::moveSelection(int dir)
if (m_content->cursorValid() && !m_content->currentCursorSelectable())
{
if (m_content->cursorValid() && !m_content->currentCursorSelectable())
{
- eDebug("position not selectable");
/* ok, our cursor position is valid (i.e. in list), but not selectable. */
/* when moving up, continue until we found a valid position. */
if ((dir == moveUp) || (dir == pageDown))
{
/* ok, our cursor position is valid (i.e. in list), but not selectable. */
/* when moving up, continue until we found a valid position. */
if ((dir == moveUp) || (dir == pageDown))
{
- eDebug("moving up");
while (m_content->cursorGet())
{
while (m_content->cursorGet())
{
- eDebug("tick");
m_content->cursorMove(-1);
if (m_content->currentCursorSelectable())
{
m_content->cursorMove(-1);
if (m_content->currentCursorSelectable())
{
- eDebug("now ok");
break;
}
}
} else
{
break;
}
}
} else
{
- eDebug("moving down");
+ /* else move down */
while (m_content->cursorValid())
{
while (m_content->cursorValid())
{
- eDebug("TICK");
m_content->cursorMove(+1);
if (m_content->currentCursorSelectable())
{
m_content->cursorMove(+1);
if (m_content->currentCursorSelectable())
{
- eDebug("NOW ok");
break;
}
}
if (!m_content->cursorValid())
break;
}
}
if (!m_content->cursorValid())
- {
- eDebug("not valid (i.e.: end)");
m_content->cursorMove(-1);
m_content->cursorMove(-1);
- }
}
if (!m_content->currentCursorSelectable())
}
if (!m_content->currentCursorSelectable())
- {
- eDebug("can't move!");
m_content->cursorSet(oldsel);
m_content->cursorSet(oldsel);
- }
}
/* note that we could be on an invalid cursor position, but we don't
}
/* note that we could be on an invalid cursor position, but we don't