From bb3034ff76daeba590c6a206c75b99720f506a2c Mon Sep 17 00:00:00 2001
From: Vratislav Podzimek <vpodzime@redhat.com>
Date: Thu, 30 Jun 2016 10:40:48 +0200
Subject: [PATCH] Clear spoke's info before setting an error (#1349446)
Otherwise the previous error message is shown (if any) instead of the new one.
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
---
org_fedora_oscap/gui/spokes/oscap.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index b630bd8..0539d5c 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -720,6 +720,7 @@ class OSCAPSpoke(NormalSpoke):
"""Set or clear error message"""
if msg:
self._error = msg
+ self.clear_info()
self.set_error(msg)
else:
self._error = None
--
2.5.5