┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2023-12-26 17:10:43 +0100
committerAlexander Lohnau <[email protected]>2023-12-26 17:10:43 +0100
commit18ff684290de1f108bfad662091954af886126a9 (patch)
tree018418905e52e44b2c804aca0190c75494acf63f /src
parentb2defa2f98468fcb9491ef7c3b96e340bb6bfa92 (diff)
Remove unneeded lambda capture
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 449d7b4ff..67a62eaac 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1722,7 +1722,7 @@ void DolphinMainWindow::setupActions()
"</para>"));
toggleSelectionModeAction->setIcon(QIcon::fromTheme(QStringLiteral("quickwizard")));
toggleSelectionModeAction->setCheckable(true);
- actionCollection()->setDefaultShortcut(toggleSelectionModeAction, Qt::Key_Space );
+ actionCollection()->setDefaultShortcut(toggleSelectionModeAction, Qt::Key_Space);
connect(toggleSelectionModeAction, &QAction::triggered, this, &DolphinMainWindow::toggleSelectionMode);
// A special version of the toggleSelectionModeAction for the toolbar that also contains a menu
@@ -2221,7 +2221,7 @@ void DolphinMainWindow::setupDockWidgets()
"all places in the places panel that have been hidden. They will "
"appear semi-transparent unless you uncheck their hide property."));
- connect(actionShowAllPlaces, &QAction::triggered, this, [actionShowAllPlaces, this](bool checked) {
+ connect(actionShowAllPlaces, &QAction::triggered, this, [this](bool checked) {
m_placesPanel->setShowAll(checked);
});
connect(m_placesPanel, &PlacesPanel::allPlacesShownChanged, actionShowAllPlaces, &QAction::setChecked);
@@ -2265,7 +2265,7 @@ void DolphinMainWindow::setupDockWidgets()
panelsMenu->addAction(actionShowAllPlaces);
panelsMenu->addAction(lockLayoutAction);
- connect(panelsMenu->menu(), &QMenu::aboutToShow, this, [actionShowAllPlaces, this] {
+ connect(panelsMenu->menu(), &QMenu::aboutToShow, this, [actionShowAllPlaces] {
actionShowAllPlaces->setEnabled(DolphinPlacesModelSingleton::instance().placesModel()->hiddenCount());
});
}