Skip to content

Commit

Permalink
Merge pull request mandiant#464 from fireeye/explorer/fix-462
Browse files Browse the repository at this point in the history
fix 462
  • Loading branch information
williballenthin authored Mar 9, 2021
2 parents cffac62 + e1a8641 commit e7eb215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capa/ida/plugin/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,14 +1143,14 @@ def ask_user_directory(self):
"""create Qt dialog to ask user for a directory"""
return str(
QtWidgets.QFileDialog.getExistingDirectory(
self.parent, "Please select a capa rules directory", settings.user["rule_path"]
self.parent, "Please select a capa rules directory", settings.user.get("rule_path", "")
)
)

def ask_user_capa_rule_file(self):
""" """
return QtWidgets.QFileDialog.getSaveFileName(
None, "Please select a capa rule to edit", settings.user["rule_path"], "*.yml"
None, "Please select a capa rule to edit", settings.user.get("rule_path", ""), "*.yml"
)[0]

def slot_change_rule_scope(self):
Expand Down

0 comments on commit e7eb215

Please sign in to comment.