mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Add confirmation dialog for "Force recheck" action (closes #131)
This commit is contained in:
@@ -517,6 +517,9 @@ void TransferListWidget::setMaxRatioSelectedTorrents() {
|
||||
}
|
||||
|
||||
void TransferListWidget::recheckSelectedTorrents() {
|
||||
QMessageBox::StandardButton ret = QMessageBox::question(this, tr("Recheck confirmation"), tr("Are you sure you want to recheck the selected torrent(s)?"), QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
|
||||
if (ret != QMessageBox::Yes)
|
||||
return;
|
||||
const QStringList hashes = getSelectedTorrentsHashes();
|
||||
foreach (const QString &hash, hashes) {
|
||||
BTSession->recheckTorrent(hash);
|
||||
|
||||
Reference in New Issue
Block a user