┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2023-02-23 12:34:01 +0100
committerMéven Car <[email protected]>2023-02-25 11:26:25 +0000
commit6f778005b524413a8a265f6037acbb1657c4efbd (patch)
tree98210334a9f1ec26cf02120708644c17e24d72fb /src/dolphinmainwindow.cpp
parent491daf4e43d1f9d6e04d586aee632875fcd34c7a (diff)
Save a in-thread stat call each time the context menu is displayed
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 9ab754f38..9c3d9862b 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -2285,9 +2285,9 @@ void DolphinMainWindow::updateFileAndEditActions()
KFileItem capabilitiesDestination;
if (tabPage->primaryViewActive()) {
- capabilitiesDestination = tabPage->secondaryViewContainer()->url();
+ capabilitiesDestination = tabPage->secondaryViewContainer()->rootItem();
} else {
- capabilitiesDestination = tabPage->primaryViewContainer()->url();
+ capabilitiesDestination = tabPage->primaryViewContainer()->rootItem();
}
copyToOtherViewAction->setEnabled(capabilitiesDestination.isWritable());