mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in stories privacy handling.
This commit is contained in:
parent
7aef0b0a83
commit
e9e347fa6c
1 changed files with 4 additions and 0 deletions
|
@ -2405,6 +2405,10 @@ void ComposeControls::initWriteRestriction() {
|
||||||
updateWrappingVisibility();
|
updateWrappingVisibility();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (_like && _like->parentWidget() == _writeRestricted.get()) {
|
||||||
|
// Fix a crash because of _like destruction with its parent.
|
||||||
|
_like->setParent(_wrap.get());
|
||||||
|
}
|
||||||
_writeRestricted = std::make_unique<Ui::RpWidget>(_parent);
|
_writeRestricted = std::make_unique<Ui::RpWidget>(_parent);
|
||||||
_writeRestricted->move(_wrap->pos());
|
_writeRestricted->move(_wrap->pos());
|
||||||
_writeRestricted->resizeToWidth(_wrap->widthNoMargins());
|
_writeRestricted->resizeToWidth(_wrap->widthNoMargins());
|
||||||
|
|
Loading…
Add table
Reference in a new issue