Add confirmation dialog for "Force recheck" action (closes #131)

This commit is contained in:
Christophe Dumez
2012-10-07 16:21:11 +03:00
parent c221b08982
commit c6edf31480
39 changed files with 1036 additions and 690 deletions

View File

@@ -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);