diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-19 23:06:14 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-20 00:57:51 +0200 |
commit | 7fab9a1d73e628ca2371d2215b0198806aa85e94 (patch) | |
tree | 4c4e529617cae41a5d3c4ab0574f5cecf0c12f80 /src/SingleImagePackModel.h | |
parent | Fix adding duplicate stickers and strip file extension (diff) | |
download | nheko-7fab9a1d73e628ca2371d2215b0198806aa85e94.tar.xz |
Prevent new packs from overwriting the default pack by accident
Diffstat (limited to '')
-rw-r--r-- | src/SingleImagePackModel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SingleImagePackModel.h b/src/SingleImagePackModel.h index 65a27bcf..595f5a78 100644 --- a/src/SingleImagePackModel.h +++ b/src/SingleImagePackModel.h @@ -71,6 +71,8 @@ public: Q_INVOKABLE void remove(int index); Q_INVOKABLE void setAvatar(QUrl file); + static std::string unconflictingStatekey(const std::string &roomid, const std::string &key); + signals: void globallyEnabledChanged(); void statekeyChanged(); |