fix(IncallFullscreenWindow): avoid invalid access to incall id

This commit is contained in:
Ronan Abhamon 2017-06-27 17:09:37 +02:00
parent 3c205c7098
commit 44fa997770

View file

@ -23,6 +23,12 @@ Window {
// ---------------------------------------------------------------------------
function exit (cb) {
// `exit` is called by `Incall.qml`.
// The `incall` id can be null if the window was closed in this view.
if (!incall) {
return
}
// It's necessary to call `showNormal` before close on MacOs
// because the dock will be hidden forever!
incall.visible = false