Skip to content

Commit

Permalink
ui,popups: fixed adding rules when there's no path
Browse files Browse the repository at this point in the history
Fixed creating rules when there's no path nor cmdline reported (with [x]
Debug invalid connections).
  • Loading branch information
gustavo-iniguez-goya committed Dec 6, 2023
1 parent 17c8ec8 commit 250dcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/opensnitch/dialogs/prompt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def _render_connection(self, con):
self._default_action = self._cfg.getInt(self._cfg.DEFAULT_ACTION_KEY)
_utils.set_default_duration(self._cfg, self.durationCombo)

if int(con.process_id) > 0:
if int(con.process_id) > 0 and app_name != "" and app_args != "":
self.whatCombo.setCurrentIndex(int(self._cfg.getSettings(self._cfg.DEFAULT_TARGET_KEY)))
else:
self.whatCombo.setCurrentIndex(2)
Expand Down

0 comments on commit 250dcb1

Please sign in to comment.