From: Claudio Cambra Date: Sun, 3 Mar 2024 18:19:05 +0000 (+0800) Subject: Ensure there is a return in case FolderPathRole of FolderStatusModel X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~117^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e15252a88c8f0d009a1f990dac059402c9f3170f;p=nextcloud-desktop.git Ensure there is a return in case FolderPathRole of FolderStatusModel Signed-off-by: Claudio Cambra --- 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());