1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Remove unused lambda capture

This commit is contained in:
Chocobo1 2019-06-25 09:39:22 +08:00
parent 32a861fd1b
commit af5af0ad3f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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()