mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
committed by
Vladimir Golovnev
parent
e93c360db6
commit
6e0c1e2147
@@ -693,8 +693,16 @@ void TransferListWidget::setSelectedFirstLastPiecePrio(const bool enabled) const
|
||||
torrent->setFirstLastPiecePriority(enabled);
|
||||
}
|
||||
|
||||
void TransferListWidget::setSelectedAutoTMMEnabled(const bool enabled) const
|
||||
void TransferListWidget::setSelectedAutoTMMEnabled(const bool enabled)
|
||||
{
|
||||
if (enabled)
|
||||
{
|
||||
const QMessageBox::StandardButton btn = QMessageBox::question(this, tr("Enable automatic torrent management")
|
||||
, tr("Are you sure you want to enable Automatic Torrent Management for the selected torrent(s)? They may be relocated.")
|
||||
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
||||
if (btn != QMessageBox::Yes) return;
|
||||
}
|
||||
|
||||
for (BitTorrent::Torrent *const torrent : asConst(getSelectedTorrents()))
|
||||
torrent->setAutoTMMEnabled(enabled);
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ private slots:
|
||||
void setSelectedTorrentsSuperSeeding(bool enabled) const;
|
||||
void setSelectedTorrentsSequentialDownload(bool enabled) const;
|
||||
void setSelectedFirstLastPiecePrio(bool enabled) const;
|
||||
void setSelectedAutoTMMEnabled(bool enabled) const;
|
||||
void setSelectedAutoTMMEnabled(bool enabled);
|
||||
void askNewCategoryForSelection();
|
||||
void saveSettings();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user