diff options
-rw-r--r-- | Applications/FileManager/DirectoryTableModel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/FileManager/DirectoryTableModel.cpp b/Applications/FileManager/DirectoryTableModel.cpp index 550ed4598e..c8166ac256 100644 --- a/Applications/FileManager/DirectoryTableModel.cpp +++ b/Applications/FileManager/DirectoryTableModel.cpp @@ -204,6 +204,8 @@ void DirectoryTableModel::open(const String& a_path) void DirectoryTableModel::activate(const GModelIndex& index) { + if (!index.is_valid()) + return; auto& entry = this->entry(index.row()); FileSystemPath path(String::format("%s/%s", m_path.characters(), entry.name.characters())); if (entry.is_directory()) { |