diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-19 15:04:27 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-19 15:04:27 +0100 |
commit | 1432376d97a0b473f3c484c725b14c4077995c92 (patch) | |
tree | fb0d30195601791a3bfd823da669182052a02ea9 /src/Gui/CCMainWindow.py | |
parent | 8ddcb9404d65bc6b09910099988fe6a0f33fe250 (diff) | |
download | abrt-1432376d97a0b473f3c484c725b14c4077995c92.tar.gz abrt-1432376d97a0b473f3c484c725b14c4077995c92.tar.xz abrt-1432376d97a0b473f3c484c725b14c4077995c92.zip |
GUI: made the report url clickable again
Diffstat (limited to 'src/Gui/CCMainWindow.py')
-rw-r--r-- | src/Gui/CCMainWindow.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index a8101d49..f67cd06a 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -233,12 +233,14 @@ class MainWindow(): report_label = _("<b>This crash has been reported:</b>\n") # plugin message follows, but at least in case of kerneloops, # it is not informative (no URL to the report) - for message in dump.getMessage().split('\n'): - if message: - #Doesn't work (far too easy to make it worse, not better): - #if "http" in message[0:5] or "file:///"[0:8] in message: - # message = "<a href=\"%s\">%s</a>" % (message, message) - report_label += "%s\n" % message + for message in dump.getMessage().split(';'): + if message: + message_clean = message.strip() + if "http" in message_clean[0:5] or "file:///"[0:8] in message_clean: + report_message = "<a href=\"%s\">%s</a>" % (message_clean, message_clean) + else: + report_message = message_clean + report_label += "%s\n" % report_message log2("setting markup '%s'", report_label) self.wTree.get_widget("lReported").set_markup(report_label) else: |