Browse Source

Fix crash when clicked outside the table of torrent content view

Closes #13645
adaptive-webui-19844
jagannatharjun 4 years ago
parent
commit
e812ac2c0b
  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