fix: check if loader item exists

This commit is contained in:
B.Melnik 2021-04-20 23:15:16 +03:00 committed by Iuri Matias
parent e211acae9b
commit 853c23030c
1 changed files with 2 additions and 1 deletions

View File

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