Avoid segfault when closing all the open tabs.
Avoid segfault when closing all the open tabs.

Reviewed-by: Marcelo Lira

qtproject/qt-apps-snowshoe,snowshoe/snowshoe,qtproject/qt-apps-snowshoe,qtproject/qt-apps-snowshoe,snowshoe/snowshoe,snowshoe/snowshoe