diff options
Diffstat (limited to 'src/Gui')
-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 8e90ef9f..816164b6 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.")) |