mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
FolderStatusModel: fix a coverity warning
This commit is contained in:
parent
28d6d0dc1e
commit
c11358219a
1 changed files with 2 additions and 2 deletions
|
@ -387,10 +387,10 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list_)
|
|||
auto job = qobject_cast<LsColJob *>(sender());
|
||||
Q_ASSERT(job);
|
||||
QModelIndex idx = qvariant_cast<QPersistentModelIndex>(job->property(propertyParentIndexC));
|
||||
if (!idx.isValid()) {
|
||||
auto parentInfo = infoForIndex(idx);
|
||||
if (!parentInfo) {
|
||||
return;
|
||||
}
|
||||
auto parentInfo = infoForIndex(idx);
|
||||
|
||||
auto list = list_;
|
||||
list.removeFirst(); // remove the parent item
|
||||
|
|
Loading…
Reference in a new issue