Skip to content

Commit fc00fde

Browse files
committed
Allow user to save valid modified policy on 1st char
Checking for `get_modified()` within signal handler for `changed` signal does not work for the 1st character (e.g. commenting a policy line) as the output of `get_modified()` only changes after the signal handler. fixes: QubesOS/qubes-issues#9911
1 parent 203be8c commit fc00fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qubes_config/policy_editor/policy_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _text_changed(self, *_args):
631631
else:
632632
self.main_window.set_title(self.window_title)
633633

634-
if not errors and self.source_buffer.get_modified():
634+
if not errors:
635635
self.action_items["save"].set_enabled(True)
636636
self.action_items["save_exit"].set_enabled(True)
637637
else:

0 commit comments

Comments
 (0)