diff options
| author | Nicolas Fella <[email protected]> | 2023-10-24 23:12:22 +0200 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2023-10-24 23:14:25 +0200 |
| commit | 1826f905d706925456763394de17294bcb6d1c35 (patch) | |
| tree | 6838f9f0a8423cc7b0b86554139299c649f53b42 /src/views/dolphinview.cpp | |
| parent | 8b91acf05b2b41ae68268081d31af18cf66d3bca (diff) | |
| parent | ef59e42c40df5e873a1a1b6c2173d5b55641a783 (diff) | |
Merge branch 'master' into kf6
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 5bdc9e15f..0bb73e623 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -267,7 +267,6 @@ void DolphinView::setActive(bool active) if (active) { m_container->setFocus(); Q_EMIT activated(); - Q_EMIT writeStateChanged(m_isFolderWritable); } } @@ -1759,7 +1758,7 @@ void DolphinView::updateViewState() // scroll to current item and reset the state if (m_scrollToCurrentItem) { - m_view->scrollToItem(currentIndex); + m_view->scrollToItem(currentIndex, KItemListView::ViewItemPosition::Middle); m_scrollToCurrentItem = false; } m_currentItemUrl = QUrl(); @@ -2243,6 +2242,11 @@ void DolphinView::updateWritableState() } } +bool DolphinView::isFolderWritable() const +{ + return m_isFolderWritable; +} + QUrl DolphinView::viewPropertiesUrl() const { if (m_viewPropertiesContext.isEmpty()) { |
