1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-14 16:57:55 +00:00

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
commit cf55b67cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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