mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06: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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user