diff options
| author | Peter Penz <[email protected]> | 2007-05-08 20:40:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-05-08 20:40:46 +0000 |
| commit | 13b36768575964d9009e94c38cd37db61d823632 (patch) | |
| tree | 15ca3e69dee7635561e09a60912e49fd2026eee6 /src/dolphinview.cpp | |
| parent | dfe4a7598abed516820632ff5982658f9df49fdc (diff) | |
fix issue in column view that the wrong root directory is taken because of keeping old directories in KDirLister
svn path=/trunk/KDE/kdebase/apps/; revision=662658
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 4c2c5f02d..64722e1e2 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -67,6 +67,7 @@ DolphinView::DolphinView(DolphinMainWindow* mainWindow, QWidget(parent), m_showProgress(false), m_blockContentsMovedSignal(false), + m_initializeColumnView(false), m_mode(mode), m_iconSize(0), m_folderCount(0), @@ -650,6 +651,14 @@ void DolphinView::changeDirectory(const KUrl& url) m_mode = mode; createView(); emit modeChanged(); + + if (m_mode == ColumnView) { + // The mode has been changed to the Column View. When starting the dir + // lister with DolphinView::startDirLister() it is important to give a + // hint that the dir lister may not keep the current directory + // although this is the default for showing a hierarchy. + m_initializeColumnView = true; + } } const bool showHiddenFiles = props.showHiddenFiles(); @@ -896,7 +905,9 @@ void DolphinView::startDirLister(const KUrl& url, bool reload) m_dirLister->stop(); bool openDir = true; - bool keepOldDirs = isColumnViewActive(); + bool keepOldDirs = isColumnViewActive() && !m_initializeColumnView; + m_initializeColumnView = false; + if (keepOldDirs) { if (reload) { keepOldDirs = false; |
