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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 087db30..77597d2 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp | |||
@@ -238,9 +238,11 @@ void PIconView::initKeys() { | |||
238 | 238 | ||
239 | /* | 239 | /* |
240 | * change one dir up | 240 | * change one dir up |
241 | */ | 241 | */ |
242 | void PIconView::slotDirUp() { | 242 | void PIconView::slotDirUp() |
243 | { | ||
244 | if (m_path.isEmpty()) return; | ||
243 | QDir dir( m_path ); | 245 | QDir dir( m_path ); |
244 | dir.cdUp(); | 246 | dir.cdUp(); |
245 | slotChangeDir( dir.absPath() ); | 247 | slotChangeDir( dir.absPath() ); |
246 | } | 248 | } |
@@ -579,8 +581,10 @@ void PIconView::slotChangeMode( int mode ) { | |||
579 | if ( mode >= 1 && mode <= 3 ) | 581 | if ( mode >= 1 && mode <= 3 ) |
580 | m_mode = mode; | 582 | m_mode = mode; |
581 | 583 | ||
582 | m_cfg->writeEntry("ListViewMode", m_mode); | 584 | m_cfg->writeEntry("ListViewMode", m_mode); |
585 | /* performance! */ | ||
586 | m_view->clear(); | ||
583 | calculateGrid(); | 587 | calculateGrid(); |
584 | slotReloadDir(); | 588 | slotReloadDir(); |
585 | } | 589 | } |
586 | 590 | ||