Skip to content

Commit

Permalink
Fix not being able to close the window on failed project load
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
mitchcurtis committed Mar 4, 2018
1 parent d7b65c2 commit 7ade9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ApplicationWindow {
}

function doIfChangesDiscarded(actionFunction, skipChangesConfirmationIfNoProject) {
if (!!skipChangesConfirmationIfNoProject && !project) {
if ((skipChangesConfirmationIfNoProject === undefined || skipChangesConfirmationIfNoProject === true) && !project) {
// If there's no project open, some features should be able to
// be performed immediately, such as Open.
actionFunction();
Expand Down

0 comments on commit 7ade9d9

Please sign in to comment.