From f07cc8999aa6696d45006aaa20fdba3e53956b84 Mon Sep 17 00:00:00 2001 From: John Wass Date: Wed, 1 Nov 2023 07:58:54 -0400 Subject: [PATCH] declare _unsaved_changes event --- fapolicy_analyzer/ui/profiler_page.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fapolicy_analyzer/ui/profiler_page.py b/fapolicy_analyzer/ui/profiler_page.py index d7b3e9143..9c9c88d6e 100644 --- a/fapolicy_analyzer/ui/profiler_page.py +++ b/fapolicy_analyzer/ui/profiler_page.py @@ -81,6 +81,8 @@ def __init__(self, fapd_manager): self.__events__ = [ "analyze_button_pushed", "refresh_toolbar", + # fixes https://github.com/ctc-oss/fapolicy-analyzer/issues/940 + "_unsaved_changes", ] Events.__init__(self) actions = {