diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-29 16:28:00 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-29 16:28:00 +0100 |
| commit | e362e4141068671638865b19996bf44341c6af11 (patch) | |
| tree | 3d8c46079ac88dced18c49ec712d300df3de2832 /src | |
| parent | 06c6f9b26676af2c05cea700c2eac145a77bbf9b (diff) | |
| parent | 6b0894cdb41d9698e593af717f4857313ea81c22 (diff) | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src')
| -rw-r--r-- | src/Gui/CCReporterDialog.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index 8e90ef9..816164b 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -89,7 +89,7 @@ class ReporterDialog(): send = True error_msgs = [] try: - rating = self.report[FILENAME_RATING] + rating = int(self.report[FILENAME_RATING][CD_CONTENT]) except: rating = None # active buttons acording to required fields @@ -98,7 +98,7 @@ class ReporterDialog(): send = False error_msgs.append(_("You must check backtrace for sensitive data")) # we have both SendBacktrace and rating - if rating: + if rating != None: try: package = self.report[FILENAME_PACKAGE][CD_CONTENT] # if we don't have package for some reason @@ -110,6 +110,7 @@ class ReporterDialog(): error_msgs.append(_("Reporting disabled because the backtrace is unusable.\nPlease try to install debuginfo manually using command: <b>debuginfo-install %s</b> \nthen use Refresh button to regenerate the backtrace." % package[0:package.rfind('-',0,package.rfind('-'))])) else: error_msgs.append(_("The backtrace is unusable, you can't report this!")) + send = False # probably usable 3 elif int(self.report[FILENAME_RATING][CD_CONTENT]) < 4: error_msgs.append(_("The backtrace is incomplete, please make sure you provide good steps to reproduce.")) |
