From: Méven Car Date: Tue, 7 Jan 2025 18:06:03 +0000 (+0100) Subject: dolphinpart: fix a warning around = in lambdas for this X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/67c045c768f961cfe072d31555463817cdfbae93 dolphinpart: fix a warning around = in lambdas for this being deprecated in C++20. --- diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index bb27e0a5e..a79b650c5 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -466,7 +466,7 @@ void DolphinPart::openSelectionDialog(const QString &title, const QString &text, dialog->setTextValue(QStringLiteral("*")); - connect(dialog, &QDialog::accepted, this, [=]() { + connect(dialog, &QDialog::accepted, this, [=, this]() { const QString pattern = dialog->textValue(); if (!pattern.isEmpty()) { QStringList items = dialog->comboBoxItems();