mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,
|
std::shared_ptr<Ui::DynamicImage> icon,
|
||||||
const QString &label,
|
const QString &label,
|
||||||
bool chosen);
|
bool chosen);
|
||||||
|
~Action();
|
||||||
|
|
||||||
bool isEnabled() const override;
|
bool isEnabled() const override;
|
||||||
not_null<QAction*> action() const override;
|
not_null<QAction*> action() const override;
|
||||||
|
@ -111,6 +112,10 @@ Action::Action(
|
||||||
enableMouseSelecting();
|
enableMouseSelecting();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Action::~Action() {
|
||||||
|
_icon->subscribeToUpdates(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
void Action::resolveMinWidth() {
|
void Action::resolveMinWidth() {
|
||||||
const auto maxWidth = st::dialogsSearchInPhotoPadding
|
const auto maxWidth = st::dialogsSearchInPhotoPadding
|
||||||
+ st::dialogsSearchInPhotoSize
|
+ st::dialogsSearchInPhotoSize
|
||||||
|
|
Loading…
Add table
Reference in a new issue