Forward port of SVN commit 1096089: Fix regression that columns stay empty when switching between URLs that differ by more than one sub directory. Thanks to Frank Reininghaus for the analysis.

CCBUG: 227785
CCBUG: 227748

svn path=/trunk/KDE/kdebase/apps/; revision=1096093
This commit is contained in:
Peter Penz 2010-02-25 19:36:36 +00:00
parent e488496286
commit df6bc98ded
4 changed files with 3 additions and 16 deletions

View file

@ -134,7 +134,10 @@ DolphinColumnView::DolphinColumnView(QWidget* parent,
}
updateDecorationSize(dolphinView->showPreview());
updateBackground();
m_extensionsFactory = new ViewExtensionsFactory(this, controller);
m_dirLister->openUrl(url, KDirLister::NoFlags);
}
DolphinColumnView::~DolphinColumnView()

View file

@ -160,8 +160,6 @@ void DolphinColumnViewContainer::showColumn(const KUrl& url)
columnIndex++;
DolphinColumnView* column = new DolphinColumnView(viewport(), this, childUrl);
column->setActive(false);
m_columns.append(column);
// Before invoking layoutColumns() the column must be set visible temporary.

View file

@ -1211,14 +1211,6 @@ void DolphinView::loadDirectory(const KUrl& url, bool reload)
KDirLister* dirLister = m_viewAccessor.dirLister();
dirLister->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
KDirLister* rootDirLister = m_viewAccessor.rootDirLister();
if (dirLister != rootDirLister) {
// In the case of the column view the root directory lister can be different. Assure
// that it gets synchronized (clients from DolphinView are not aware that internally
// different directory listers are used).
rootDirLister->openUrl(url, reload ? KDirLister::Reload : KDirLister::NoFlags);
}
}
void DolphinView::applyViewProperties()
@ -1507,11 +1499,6 @@ KUrl DolphinView::ViewAccessor::rootUrl() const
return (m_columnsContainer != 0) ? m_columnsContainer->rootUrl() : KUrl();
}
KDirLister* DolphinView::ViewAccessor::rootDirLister() const
{
return static_cast<DolphinModel*>(m_proxyModel->sourceModel())->dirLister();
}
bool DolphinView::ViewAccessor::supportsCategorizedSorting() const
{
return m_iconsView != 0;

View file

@ -747,7 +747,6 @@ private:
QWidget* layoutTarget() const;
KUrl rootUrl() const;
KDirLister* rootDirLister() const;
bool supportsCategorizedSorting() const;
bool itemsExpandable() const;