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 committed by sledgehammer999
parent a8911f8136
commit fe0ea843e0
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

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