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:
commit
cf55b67cee
@ -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…
Reference in New Issue
Block a user