]> cloud.milkyroute.net Git - dolphin.git/commitdiff
dolphinpart: fix a warning around = in lambdas for this
authorMéven Car <meven@kde.org>
Tue, 7 Jan 2025 18:06:03 +0000 (19:06 +0100)
committerMéven Car <meven@kde.org>
Tue, 7 Jan 2025 18:06:03 +0000 (19:06 +0100)
being deprecated in C++20.

src/dolphinpart.cpp

index bb27e0a5e4650047dd61240f2fee5beca25904b2..a79b650c5b2a1afcfe7b883003d16a2b104cfdc3 100644 (file)
@@ -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();