mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Use base::weak_qptr / base::make_weak.
This commit is contained in:
@@ -276,7 +276,7 @@ void Controller::checkLockByTerms() {
|
||||
showTermsDecline();
|
||||
}, box->lifetime());
|
||||
|
||||
QObject::connect(box, &QObject::destroyed, [=] {
|
||||
QObject::connect(box.get(), &QObject::destroyed, [=] {
|
||||
crl::on_main(widget(), [=] { checkLockByTerms(); });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user