mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Fix crash in topic search context menu destruction.
This commit is contained in:
parent
c9bd776d1e
commit
1fac6db8bd
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,7 @@ public:
|
|||
std::shared_ptr<Ui::DynamicImage> icon,
|
||||
const QString &label,
|
||||
bool chosen);
|
||||
~Action();
|
||||
|
||||
bool isEnabled() const override;
|
||||
not_null<QAction*> action() const override;
|
||||
|
@ -111,6 +112,10 @@ Action::Action(
|
|||
enableMouseSelecting();
|
||||
}
|
||||
|
||||
Action::~Action() {
|
||||
_icon->subscribeToUpdates(nullptr);
|
||||
}
|
||||
|
||||
void Action::resolveMinWidth() {
|
||||
const auto maxWidth = st::dialogsSearchInPhotoPadding
|
||||
+ st::dialogsSearchInPhotoSize
|
||||
|
|
Loading…
Add table
Reference in a new issue