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; }