From 010a079417d75cebc059798fcf3d1044453759e0 Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Mon, 3 Aug 2015 15:00:28 +0200
Subject: [PATCH 3/7] Clear any error if switching to the dry-run mode
Nothing is done by the addon in the dry-run mode so there cannot be any error.
Related: rhbz#1247677
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
---
org_fedora_oscap/gui/spokes/oscap.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index 06107a3..7037f91 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -749,6 +749,7 @@ class OSCAPSpoke(NormalSpoke):
_("Not applying security policy"))
self._add_message(message)
+ self._set_error(None)
else:
# mark the active profile as selected
self._select_profile(self._active_profile)
@@ -807,9 +808,6 @@ class OSCAPSpoke(NormalSpoke):
self._main_notebook.set_current_page(SET_PARAMS_PAGE)
- dry_run = self._dry_run_switch.get_active()
- self._switch_dry_run(dry_run)
-
self._active_profile = self._addon_data.profile_id
if self._using_ds:
--
2.1.0