1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Fix crash when clicked outside the table of torrent content view

Closes #13645
This commit is contained in:
jagannatharjun 2020-10-25 23:39:29 +05:30
parent 172eda5471
commit e812ac2c0b

View File

@ -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));
}