mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-19 14:23:59 +02:00
Fixes #26273. This crash happens with a very deep stack trace that is caused by destroying shared media layer on Go to Message click, which starts destroying Media::ListWidget, which destroys Ui::PopupMenu, which is a window, so when it destructs it triggers a sync repaint of the main window (by a system event), which tries to render the new messages slice, which starts a photo download, which calls an item repaint in Data::Session, and the semi-destroyed Media::ListWidget is still subscribed to the item repaint requests and tries to repaint and crashes there. The fix is to destroy all session-related subscriptions before the PopupMenu. |
||
---|---|---|
.. | ||
info_media_buttons.h | ||
info_media_common.cpp | ||
info_media_common.h | ||
info_media_empty_widget.cpp | ||
info_media_empty_widget.h | ||
info_media_inner_widget.cpp | ||
info_media_inner_widget.h | ||
info_media_list_section.cpp | ||
info_media_list_section.h | ||
info_media_list_widget.cpp | ||
info_media_list_widget.h | ||
info_media_provider.cpp | ||
info_media_provider.h | ||
info_media_widget.cpp | ||
info_media_widget.h |