diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-25 09:37:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-11-25 09:37:59 +0100 |
commit | a4acb7e251cba5ba6d66bf6235736202255c4eac (patch) | |
tree | aff6b7d7d852959bb4767809d3911d18b4ae3269 /common/modelresult.h | |
parent | 00e6b843e9f2881faccb312594a0e91c42df0096 (diff) | |
download | sink-a4acb7e251cba5ba6d66bf6235736202255c4eac.tar.gz sink-a4acb7e251cba5ba6d66bf6235736202255c4eac.zip |
Only use the parent index when it's available
Diffstat (limited to 'common/modelresult.h')
-rw-r--r-- | common/modelresult.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modelresult.h b/common/modelresult.h index 40a9d9d..66dfce5 100644 --- a/common/modelresult.h +++ b/common/modelresult.h | |||
@@ -53,7 +53,7 @@ public: | |||
53 | void setFetcher(const std::function<void(const Ptr &parent)> &fetcher); | 53 | void setFetcher(const std::function<void(const Ptr &parent)> &fetcher); |
54 | 54 | ||
55 | private: | 55 | private: |
56 | static qint64 parentId(const Ptr &value); | 56 | qint64 parentId(const Ptr &value); |
57 | QModelIndex createIndexFromId(const qint64 &id) const; | 57 | QModelIndex createIndexFromId(const qint64 &id) const; |
58 | void fetchEntities(const QModelIndex &parent); | 58 | void fetchEntities(const QModelIndex &parent); |
59 | 59 | ||