From e812ac2c0bc74a34b023795c9c80ecbbb439877d Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Sun, 25 Oct 2020 23:39:29 +0530 Subject: [PATCH] Fix crash when clicked outside the table of torrent content view Closes #13645 --- src/gui/properties/propertieswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index a1a49abc5..618081200 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -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)); }