mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Implement an option to disable confirmation of torrent recheck
This commit is contained in:
@@ -478,8 +478,10 @@ 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;
|
||||
if (Preferences::instance()->confirmTorrentRecheck()) {
|
||||
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;
|
||||
}
|
||||
|
||||
foreach (BitTorrent::TorrentHandle *const torrent, getSelectedTorrents())
|
||||
torrent->forceRecheck();
|
||||
|
||||
Reference in New Issue
Block a user