mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -07: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:
parent
0607050ecc
commit
7ed0cd0c35
2 changed files with 11 additions and 12 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue