mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07: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:
commit
cf55b67cee
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
|
void PropertiesWidget::openItem(const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
if (!index.isValid())
|
||||||
|
return;
|
||||||
|
|
||||||
m_torrent->flushCache(); // Flush data
|
m_torrent->flushCache(); // Flush data
|
||||||
Utils::Gui::openPath(getFullPath(index));
|
Utils::Gui::openPath(getFullPath(index));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue