Merge pull request #13646 from jagannatharjun/content-crash

Fix crash when clicked outside the table of torrent content view
This commit is contained in:
Mike Tzou
2020-10-26 12:38:11 +08:00
committed by GitHub

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