From e15252a88c8f0d009a1f990dac059402c9f3170f Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 4 Mar 2024 02:19:05 +0800 Subject: [PATCH] Ensure there is a return in case FolderPathRole of FolderStatusModel Signed-off-by: Claudio Cambra --- src/gui/folderstatusmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index d5d021885..cc3aede36 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -200,13 +200,15 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const break; case FileIdRole: return subfolderInfo._fileId; - case FolderStatusDelegate::FolderPathRole: { + case FolderStatusDelegate::FolderPathRole: + { if (const auto folder = subfolderInfo._folder) { return {folder->path() + subfolderInfo._path}; } return {}; } } + return {}; } case FetchLabel: { const auto folderInfo = static_cast(index.internalPointer()); -- 2.30.2