mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix possible crash in main window destructor.
In platform window destructor it can send window state change signal.
This commit is contained in:
@@ -53,9 +53,9 @@ Controller::Controller(
|
||||
|
||||
Controller::Controller(CreateArgs &&args)
|
||||
: _singlePeer(args.singlePeer)
|
||||
, _isActiveTimer([=] { updateIsActive(); })
|
||||
, _widget(this)
|
||||
, _adaptive(std::make_unique<Adaptive>())
|
||||
, _isActiveTimer([=] { updateIsActive(); }) {
|
||||
, _adaptive(std::make_unique<Adaptive>()) {
|
||||
_widget.init();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user