Browse Source

Merge pull request #13646 from jagannatharjun/content-crash

Fix crash when clicked outside the table of torrent content view
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
cf55b67cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/gui/properties/propertieswidget.cpp

3
src/gui/properties/propertieswidget.cpp

@ -540,6 +540,9 @@ QString PropertiesWidget::getFullPath(const QModelIndex &index) const @@ -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));
}

Loading…
Cancel
Save