mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
Fix preview not opening on wayland
Deferring the opening of the preview slightly gives the preview select dialog time to close and for focus to shift back to the main window. Closes #22607
This commit is contained in:
parent
0b3bce8993
commit
358f4c68bb
1 changed files with 4 additions and 1 deletions
|
@ -256,7 +256,10 @@ TransferListModel *TransferListWidget::getSourceModel() const
|
|||
|
||||
void TransferListWidget::previewFile(const Path &filePath)
|
||||
{
|
||||
QTimer::singleShot(0, this, [=]()
|
||||
{
|
||||
Utils::Gui::openPath(filePath);
|
||||
});
|
||||
}
|
||||
|
||||
QModelIndex TransferListWidget::mapToSource(const QModelIndex &index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue