mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
Add comment to bugfix
This commit is contained in:
parent
e5e2d0df66
commit
14c9e5b041
1 changed files with 2 additions and 0 deletions
|
@ -1448,6 +1448,8 @@ void TransferListWidget::openPreviewSelectDialog(const BitTorrent::Torrent *torr
|
|||
{
|
||||
auto *dialog = new PreviewSelectDialog(this, torrent);
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
// Qt::QueuedConnection is required to prevent a bug on wayland compositors where the preview won't open.
|
||||
// It occurs when the window focus shifts immediately after TransferListWidget::previewFile has been called.
|
||||
connect(dialog, &PreviewSelectDialog::readyToPreviewFile, this, &TransferListWidget::previewFile, Qt::QueuedConnection);
|
||||
dialog->show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue