diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index f2910e377..853c97f46 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -691,7 +691,7 @@ void TransferListWidget::setMaxRatioSelectedTorrents() auto dialog = new UpDownRatioDialog(useGlobalValue, currentMaxRatio, BitTorrent::TorrentHandle::MAX_RATIO, currentMaxSeedingTime, BitTorrent::TorrentHandle::MAX_SEEDING_TIME, this); dialog->setAttribute(Qt::WA_DeleteOnClose); - connect(dialog, &QDialog::accepted, this, [this, dialog, torrents]() + connect(dialog, &QDialog::accepted, this, [dialog, torrents]() { for (BitTorrent::TorrentHandle *const torrent : torrents) { const qreal ratio = (dialog->useDefault()