Fix possible crash in main window destructor.

In platform window destructor it can send window state change signal.
This commit is contained in:
John Preston
2022-08-12 16:21:52 +03:00
parent 76a482317d
commit 228a48c8bf
2 changed files with 3 additions and 3 deletions
@@ -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();
}