Use base::weak_qptr / base::make_weak.

This commit is contained in:
John Preston
2025-07-18 10:07:39 +04:00
parent 321c7120df
commit b754ad5248
189 changed files with 556 additions and 555 deletions

View File

@@ -520,7 +520,7 @@ void ConfirmContactBox::prepare() {
_contact->initDimensions();
_submit = [=, original = std::move(_submit)](Qt::KeyboardModifiers m) {
const auto weak = Ui::MakeWeak(this);
const auto weak = base::make_weak(this);
original(m);
if (weak) {
closeBox();