summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-21 13:00:52 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-21 13:00:52 +0100
commitc355df4b6d90f747bbd527c09b199e0825480fb6 (patch)
tree469ae4601b5667f78b2338cd1ac37e6fabe77103 /src/Gui
parent6443695f275167adb123070daf2a6b6ecc0bb371 (diff)
downloadabrt-c355df4b6d90f747bbd527c09b199e0825480fb6.tar.gz
abrt-c355df4b6d90f747bbd527c09b199e0825480fb6.tar.xz
abrt-c355df4b6d90f747bbd527c09b199e0825480fb6.zip
restore saving of backtrace broken by client->server security fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/CCMainWindow.py10
-rw-r--r--src/Gui/PluginList.py2
2 files changed, 8 insertions, 4 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 9dffa7a7..8222c17c 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -229,6 +229,7 @@ class MainWindow():
# this should work until we keep the row object in the last position
dump = dumpsListStore.get_value(dumpsListStore.get_iter(path[0]), dumpsListStore.get_n_columns()-1)
#move this to Dump class
+ lReported = self.wTree.get_widget("lReported")
if dump.isReported():
report_label_raw = _("This crash has been reported:\n")
report_label = _("<b>This crash has been reported:</b>\n")
@@ -244,10 +245,13 @@ class MainWindow():
report_label += "%s\n" % report_message
report_label_raw += "%s\n" % message_clean
log2("setting markup '%s'", report_label)
- self.wTree.get_widget("lReported").set_text(report_label_raw)
- self.wTree.get_widget("lReported").set_markup(report_label)
+ lReported.set_text(report_label_raw)
+ # Sometimes (!) set_markup() fails with
+ # "GtkWarning: Failed to set text from markup due to error parsing markup: Unknown tag 'a'"
+ # If it does, then set_text() above acts as a fallback
+ lReported.set_markup(report_label)
else:
- self.wTree.get_widget("lReported").set_markup(_("<b>Not reported!</b>"))
+ lReported.set_markup(_("<b>Not reported!</b>"))
def on_bDelete_clicked(self, button, treeview):
dumpsListStore, path = self.dlist.get_selection().get_selected_rows()
diff --git a/src/Gui/PluginList.py b/src/Gui/PluginList.py
index 78e58298..82759ae3 100644
--- a/src/Gui/PluginList.py
+++ b/src/Gui/PluginList.py
@@ -43,7 +43,7 @@ class PluginInfoList(list):
for plugin in self.getReporterPlugins():
reporters_settings[str(plugin)] = plugin.Settings
return reporters_settings
-
+
__PFList = None
__PFList_dbmanager = None