mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-12 19:50:17 +05:00
setPosts() called beginResetModel()/endResetModel() *before* swapping mPosts, so endResetModel() fired while the model still exposed the previous hierarchy, then emitted an extra beginInsertRows()/endInsertRows() on top of the reset. That double-signalling left the view/proxy row->source mapping stale, so a post that had just arrived could map to an invalid source index: selecting it neither displayed its content nor cleared its unread (bold) state. Bracket the actual data swap with beginResetModel()/endResetModel() and drop the bogus row-insertion signal; a full reset already tells the views to re-query everything. Same anti-pattern as the channels grid-empty-on-new-post fix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||