Browse Source

Remove unused lambda capture

adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
af5af0ad3f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/transferlistwidget.cpp

2
src/gui/transferlistwidget.cpp

@ -691,7 +691,7 @@ void TransferListWidget::setMaxRatioSelectedTorrents() @@ -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()

Loading…
Cancel
Save