mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in main window destructor.
In platform window destructor it can send window state change signal.
This commit is contained in:
parent
76a482317d
commit
228a48c8bf
2 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ Controller::Controller(
|
||||||
|
|
||||||
Controller::Controller(CreateArgs &&args)
|
Controller::Controller(CreateArgs &&args)
|
||||||
: _singlePeer(args.singlePeer)
|
: _singlePeer(args.singlePeer)
|
||||||
|
, _isActiveTimer([=] { updateIsActive(); })
|
||||||
, _widget(this)
|
, _widget(this)
|
||||||
, _adaptive(std::make_unique<Adaptive>())
|
, _adaptive(std::make_unique<Adaptive>()) {
|
||||||
, _isActiveTimer([=] { updateIsActive(); }) {
|
|
||||||
_widget.init();
|
_widget.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,10 +138,10 @@ private:
|
||||||
|
|
||||||
PeerData *_singlePeer = nullptr;
|
PeerData *_singlePeer = nullptr;
|
||||||
Main::Account *_account = nullptr;
|
Main::Account *_account = nullptr;
|
||||||
|
base::Timer _isActiveTimer;
|
||||||
::MainWindow _widget;
|
::MainWindow _widget;
|
||||||
const std::unique_ptr<Adaptive> _adaptive;
|
const std::unique_ptr<Adaptive> _adaptive;
|
||||||
std::unique_ptr<SessionController> _sessionController;
|
std::unique_ptr<SessionController> _sessionController;
|
||||||
base::Timer _isActiveTimer;
|
|
||||||
QPointer<Ui::BoxContent> _termsBox;
|
QPointer<Ui::BoxContent> _termsBox;
|
||||||
|
|
||||||
rpl::event_stream<Media::View::OpenRequest> _openInMediaViewRequests;
|
rpl::event_stream<Media::View::OpenRequest> _openInMediaViewRequests;
|
||||||
|
|
Loading…
Add table
Reference in a new issue