diff options
| author | Méven Car <[email protected]> | 2023-02-23 12:34:01 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2023-02-25 11:26:25 +0000 |
| commit | 6f778005b524413a8a265f6037acbb1657c4efbd (patch) | |
| tree | 98210334a9f1ec26cf02120708644c17e24d72fb /src/dolphinmainwindow.cpp | |
| parent | 491daf4e43d1f9d6e04d586aee632875fcd34c7a (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.cpp | 4 |
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()); |
