diff options
| author | Peter Penz <[email protected]> | 2007-09-25 12:03:57 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-25 12:03:57 +0000 |
| commit | d4103e8ecbbb6dc27d662460289314b1cc777c4c (patch) | |
| tree | 8852ab751c78a7ef2e5f2c8ade41444e20a36ec4 /src/dolphincolumnview.cpp | |
| parent | e0c795a52982bcf0203b699dd35cdf03ff727ce2 (diff) | |
* the directory lister must be updated when reloading columns
* ignore trailing slashes when comparing URLs
svn path=/trunk/KDE/kdebase/apps/; revision=716858
Diffstat (limited to 'src/dolphincolumnview.cpp')
| -rw-r--r-- | src/dolphincolumnview.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 119888f2d..381a795e1 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -757,7 +757,9 @@ void DolphinColumnView::expandToActiveUrl() Q_ASSERT(lastIndex >= 0); const KUrl& activeUrl = m_columns[lastIndex]->url(); const KUrl rootUrl = m_dolphinModel->dirLister()->url(); - if (rootUrl.isParentOf(activeUrl) && (rootUrl != activeUrl)) { + const bool expand = rootUrl.isParentOf(activeUrl) + && !rootUrl.equals(activeUrl, KUrl::CompareWithoutTrailingSlash); + if (expand) { m_dolphinModel->expandToUrl(activeUrl); reloadColumns(); } @@ -775,6 +777,10 @@ void DolphinColumnView::reloadColumns() const int end = m_columns.count() - 2; // next to last column for (int i = 0; i <= end; ++i) { ColumnWidget* nextColumn = m_columns[i + 1]; + + KDirLister* dirLister = m_dolphinModel->dirLister(); + dirLister->updateDirectory(nextColumn->url()); + const QModelIndex rootIndex = nextColumn->rootIndex(); if (rootIndex.isValid()) { nextColumn->show(); |
