fixed logic bug on canOpenLogfileWithEditor, removed closure