when activating the columns inside a column view, the current view properties must get synchronized

svn path=/trunk/KDE/kdebase/apps/; revision=693930
This commit is contained in:
Peter Penz 2007-07-29 14:44:00 +00:00
parent 3b9570b01b
commit 4ad6cc3e3d

View file

@ -424,15 +424,21 @@ void DolphinView::refresh()
void DolphinView::setUrl(const KUrl& url)
{
if (m_controller->url() == url) {
return;
// Although the view URL is equal to the controller URL,
// the view properties must be applied to the view.
// This assures a consistent state of the currently activated
// column and their view properties.
if (isColumnViewActive()) {
applyViewProperties(url);
}
} else {
m_controller->setUrl(url);
applyViewProperties(url);
startDirLister(url);
emit urlChanged(url);
}
m_controller->setUrl(url);
applyViewProperties(url);
startDirLister(url);
emit urlChanged(url);
}
void DolphinView::mouseReleaseEvent(QMouseEvent* event)