Diffstat (limited to 'noncore/graphics/opie-eye/gui/iconview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index f6e1816..7231bfb 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp | |||
@@ -281,3 +281,2 @@ QString PIconView::nextFileName(bool &isDir)const | |||
281 | isDir = it->isDir(); | 281 | isDir = it->isDir(); |
282 | m_view->setCurrentItem(_it); | ||
283 | return it->path(); | 282 | return it->path(); |
@@ -295,3 +294,2 @@ QString PIconView::prevFileName(bool &isDir)const{ | |||
295 | isDir = it->isDir(); | 294 | isDir = it->isDir(); |
296 | m_view->setCurrentItem(_it); | ||
297 | return it->path(); | 295 | return it->path(); |
@@ -481,5 +479,6 @@ void PIconView::slotShowNext() | |||
481 | QString name = nextFileName(isDir); | 479 | QString name = nextFileName(isDir); |
482 | if (isDir) return; | ||
483 | if (name.isEmpty()) return; | 480 | if (name.isEmpty()) return; |
484 | odebug << "Show next: " << name << oendl; | 481 | if (isDir) return; |
482 | /* if we got a name we have a next item */ | ||
483 | m_view->setCurrentItem(m_view->currentItem()->nextItem()); | ||
485 | slotShowImage(name); | 484 | slotShowImage(name); |
@@ -491,4 +490,6 @@ void PIconView::slotShowPrev() | |||
491 | QString name = prevFileName(isDir); | 490 | QString name = prevFileName(isDir); |
492 | if (isDir) return; | ||
493 | if (name.isEmpty()) return; | 491 | if (name.isEmpty()) return; |
492 | if (isDir) return; | ||
493 | /* if we got a name we have a prev item */ | ||
494 | m_view->setCurrentItem(m_view->currentItem()->prevItem()); | ||
494 | slotShowImage(name); | 495 | slotShowImage(name); |