summary refs log tree commit diff
path: root/src/ImagePackModel.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-19 12:43:16 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-19 12:43:16 +0200
commit9f416f1fc9cc3a973159b2a5a84ee668ffbc5063 (patch)
tree6be480fa634b17cae2c47e15e4985c25b8a47a1b /src/ImagePackModel.h
parentFix unused state key when iterating room stickers (diff)
downloadnheko-9f416f1fc9cc3a973159b2a5a84ee668ffbc5063.tar.xz
Fix only first 7 stickers showing up
Diffstat (limited to 'src/ImagePackModel.h')
-rw-r--r--src/ImagePackModel.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ImagePackModel.h b/src/ImagePackModel.h

index 10e71b8f..937014ec 100644 --- a/src/ImagePackModel.h +++ b/src/ImagePackModel.h
@@ -23,11 +23,7 @@ public: ImagePackModel(const std::string &roomId, bool stickers, QObject *parent = nullptr); QHash<int, QByteArray> roleNames() const override; - int rowCount(const QModelIndex &parent = QModelIndex()) const override - { - (void)parent; - return (int)images.size(); - } + int rowCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role) const override; mtx::events::msc2545::PackImage imageAt(int row)