|
|
@ -605,12 +605,15 @@ void TransferListWidget::openSelectedTorrentsFolder() const |
|
|
|
void TransferListWidget::previewSelectedTorrents() |
|
|
|
void TransferListWidget::previewSelectedTorrents() |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (BitTorrent::TorrentHandle *const torrent : asConst(getSelectedTorrents())) { |
|
|
|
for (BitTorrent::TorrentHandle *const torrent : asConst(getSelectedTorrents())) { |
|
|
|
if (torrentContainsPreviewableFiles(torrent)) |
|
|
|
if (torrentContainsPreviewableFiles(torrent)) { |
|
|
|
new PreviewSelectDialog(this, torrent); |
|
|
|
const auto *dialog = new PreviewSelectDialog(this, torrent); |
|
|
|
else |
|
|
|
connect(dialog, &PreviewSelectDialog::readyToPreviewFile, this, &TransferListWidget::previewFile); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
QMessageBox::critical(this, tr("Unable to preview"), tr("The selected torrent does not contain previewable files")); |
|
|
|
QMessageBox::critical(this, tr("Unable to preview"), tr("The selected torrent does not contain previewable files")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TransferListWidget::setDlLimitSelectedTorrents() |
|
|
|
void TransferListWidget::setDlLimitSelectedTorrents() |
|
|
|
{ |
|
|
|
{ |
|
|
|