From 853c23030c2392fdb51e8501aafefd45ef89a8a0 Mon Sep 17 00:00:00 2001 From: "B.Melnik" Date: Tue, 20 Apr 2021 23:15:16 +0300 Subject: [PATCH] fix: check if loader item exists --- ui/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/main.qml b/ui/main.qml index 26d1dbd4b5..c68a97ee45 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -71,7 +71,8 @@ ApplicationWindow { Action { shortcut: "Ctrl+W" - enabled: loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser) + enabled: loader.item ? loader.item.currentView !== Utils.getAppSectionIndex(Constants.browser) + : true onTriggered: { applicationWindow.visible = false; }