mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Fix crash when clicked outside the table of torrent content view
Closes #13645
This commit is contained in:
parent
172eda5471
commit
e812ac2c0b
1 changed files with 3 additions and 0 deletions
|
@ -540,6 +540,9 @@ QString PropertiesWidget::getFullPath(const QModelIndex &index) const
|
|||
|
||||
void PropertiesWidget::openItem(const QModelIndex &index) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return;
|
||||
|
||||
m_torrent->flushCache(); // Flush data
|
||||
Utils::Gui::openPath(getFullPath(index));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue