Skip to content

Commit

Permalink
Fix crash when module tries to empty context_menu_base
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastProject committed Dec 30, 2017
1 parent 4ca9d49 commit dc9622d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Use argparse for argument parsing instead of getopt
- Update checking now happens if the last check was over 24 hours, instead of each app launch

### Fixed
- Pext crash when module tries to empty context_menu_base

### Removed
- Removed manpage

Expand Down
2 changes: 1 addition & 1 deletion pext/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def _process_tab_action(self, tab: Dict, active_tab: int) -> None:
tab['vm'].context_menu_commands = {}

elif action[0] == Action.set_base_context:
if len(action) > 0:
if len(action) > 1:
tab['vm'].context_menu_base = action[1]
else:
tab['vm'].context_menu_base = []
Expand Down

0 comments on commit dc9622d

Please sign in to comment.