mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-21 22:46:50 +00:00
DomainTransitionAnalysisTab: Add save/load of excluded types.
Missed this from the original change. For #97 and #98.
This commit is contained in:
parent
7f20bd5be7
commit
e9332819d2
@ -217,6 +217,7 @@ class DomainTransitionAnalysisTab(SEToolsWidget, QScrollArea):
|
||||
save_lineedits(self, settings, ["source", "target"])
|
||||
save_spinboxes(self, settings, ["max_path_length", "limit_paths"])
|
||||
save_textedits(self, settings, ["notes"])
|
||||
settings["exclude"] = [str(t) for t in self.query.exclude]
|
||||
return settings
|
||||
|
||||
def load(self, settings):
|
||||
@ -226,6 +227,11 @@ class DomainTransitionAnalysisTab(SEToolsWidget, QScrollArea):
|
||||
load_spinboxes(self, settings, ["max_path_length", "limit_paths"])
|
||||
load_textedits(self, settings, ["notes"])
|
||||
|
||||
try:
|
||||
self.query.exclude = settings["exclude"]
|
||||
except KeyError:
|
||||
self.log.warning("Excluded types criteria missing from settings file.")
|
||||
|
||||
#
|
||||
# Infoflow browser
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user