mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Implement an option to disable confirmation of torrent recheck
This commit is contained in:
parent
647140c7c7
commit
7474c05209
4 changed files with 22 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue