summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-09-21 19:01:45 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-09-21 19:01:45 +0200
commit95e37578bd5a7b969af21a013aec9b242a9e78d6 (patch)
tree0392750e353ac5183dab239f1cb51ad2b77d6573 /src/Gui
parent9348e4c19ee6053a39b2690ae5be9e704fdb07b6 (diff)
downloadabrt-95e37578bd5a7b969af21a013aec9b242a9e78d6.tar.gz
abrt-95e37578bd5a7b969af21a013aec9b242a9e78d6.tar.xz
abrt-95e37578bd5a7b969af21a013aec9b242a9e78d6.zip
GUI: save/load comment and "how to reproduce"
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/CCMainWindow.py2
-rw-r--r--src/Gui/CCReporterDialog.py11
2 files changed, 11 insertions, 2 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 3ad979d1..29b9856b 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -322,7 +322,7 @@ class MainWindow():
dump = dumpsListStore.get_value(dumpsListStore.get_iter(path[0]), dumpsListStore.get_n_columns()-1)
# show the report window with selected dump
try:
- report = self.ccdaemon.getReport(dump.getUUID())
+ self.ccdaemon.getReport(dump.getUUID())
except Exception, e:
# FIXME #3 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply
# do this async and wait for yum to end with debuginfoinstal
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index 5d0a0e29..58ccb2d9 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -108,7 +108,16 @@ class ReporterDialog():
for item in self.report:
if item == "Comment":
buff = gtk.TextBuffer()
- buff.set_text(_("Brief description how to reproduce this or what you did..."))
+ comment = _("Brief description how to reproduce this or what you did...")
+ try:
+ if self.report[item][CONTENT]:
+ comment = self.report[item][CONTENT]
+ self.comment_changed = True
+ except Exception, e:
+ pass
+
+ buff.set_text(comment)
+
self.tvComment.set_buffer(buff)
continue
if self.report[item][TYPE] != 's':