diff --git a/src/gui/guiaddtorrentmanager.cpp b/src/gui/guiaddtorrentmanager.cpp index d600a4e17c89..d1c733073af9 100644 --- a/src/gui/guiaddtorrentmanager.cpp +++ b/src/gui/guiaddtorrentmanager.cpp @@ -249,7 +249,7 @@ bool GUIAddTorrentManager::processTorrent(const QString &source { releaseTorrentFileGuard(source); }); - connect(dlg, &QDialog::finished, this, [this, source, infoHash] + connect(dlg, &QDialog::finished, this, [this, infoHash] { m_dialogs.remove(infoHash); });