mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
fix crash on restart due to null main window
This commit is contained in:
parent
fb9f2dd870
commit
9da9c25dba
1 changed files with 2 additions and 3 deletions
|
|
@ -1324,9 +1324,8 @@ void App::setMainWindow(QQuickWindow *data) {
|
|||
connect(mMainWindow, &QQuickWindow::activeChanged, this, &App::handleAppActivity);
|
||||
handleAppActivity();
|
||||
|
||||
mMainWindow->winId();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
if (mMainWindow)
|
||||
WTSRegisterSessionNotification(reinterpret_cast<HWND>(mMainWindow->winId()), NOTIFY_FOR_THIS_SESSION);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue