2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 16:35:44 +00:00

Remove twidget header.

This commit is contained in:
John Preston
2019-09-13 15:22:54 +03:00
parent e2f54eb3e9
commit c5845f17ae
188 changed files with 1070 additions and 907 deletions

View File

@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/abstract_box.h"
#include "ui/wrap/vertical_layout.h"
#include "ui/widgets/popup_menu.h"
#include "ui/ui_utility.h"
#include "data/data_session.h"
#include "data/data_user.h"
#include "core/event_filter.h"
@@ -153,7 +154,7 @@ void EditLinkBox::prepare() {
url->showError();
return;
}
const auto weak = make_weak(this);
const auto weak = Ui::MakeWeak(this);
_callback(linkText, linkUrl);
if (weak) {
closeBox();
@@ -354,7 +355,7 @@ Fn<bool(
EditLinkAction action)> DefaultEditLinkCallback(
not_null<Main::Session*> session,
not_null<Ui::InputField*> field) {
const auto weak = make_weak(field);
const auto weak = Ui::MakeWeak(field);
return [=](
EditLinkSelection selection,
QString text,