Skip to content

Commit

Permalink
BUG: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtJacobson committed Aug 22, 2020
1 parent 5fd6997 commit bcae84a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qtpyvcp/widgets/form_widgets/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def getMenuAction(self, menu_action, title='notitle', action_name='noaction',
setting_id = action_name[len('settings.'):]
setting = getSetting(setting_id)

if setting.value_type == bool:
if setting and setting.value_type == bool:
# works for bool settings
menu_action.setCheckable(True)
menu_action.triggered.connect(setting.setValue)
Expand Down
2 changes: 1 addition & 1 deletion qtpyvcp/yaml_lib/default_menubar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ default_menubar:
- title: Settings
items:
- title: Show On-screen Keyboard
action: settings.virtual-input.enabl
action: settings.virtual-input.enable

- title: View
items:
Expand Down

0 comments on commit bcae84a

Please # to comment.