mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
3b9570b01b
commit
4ad6cc3e3d
1 changed files with 14 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue