mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Fix "preview file" action not working
Root cause is the PreviewSelectDialog::readyToPreviewFile signal is emitted before it is connected to a slot. Only single-file torrents are affected. Closes #11315.
This commit is contained in:
@@ -506,6 +506,7 @@ void TransferListWidget::previewSelectedTorrents()
|
||||
auto *dialog = new PreviewSelectDialog(this, torrent);
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
connect(dialog, &PreviewSelectDialog::readyToPreviewFile, this, &TransferListWidget::previewFile);
|
||||
dialog->show();
|
||||
}
|
||||
else {
|
||||
QMessageBox::critical(this, tr("Unable to preview"), tr("The selected torrent does not contain previewable files"));
|
||||
|
||||
Reference in New Issue
Block a user