[Pkg-owncloud-commits] [owncloud-client] 170/498: FolderStatusModel: fix a coverity warning
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit c11358219a4d66ef67af1f8500d1593db1072df8
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue Jun 16 13:26:39 2015 +0200
FolderStatusModel: fix a coverity warning
---
src/gui/folderstatusmodel.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 7604749..92dcba5 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list