Do not send survey in case of swearwords
I'm getting tired of kids blaming their idiocy on me. They can go begging for money, for all I care.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Relational
|
||||
# Copyright (C) 2008-2016 Salvo "LtWorf" Tomaselli
|
||||
# Copyright (C) 2008-2017 Salvo "LtWorf" Tomaselli
|
||||
#
|
||||
# Relational is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -82,11 +82,14 @@ class surveyForm (QtWidgets.QWidget):
|
||||
|
||||
response = maintenance.send_survey(post)
|
||||
|
||||
if response != 200:
|
||||
QtWidgets.QMessageBox.information(None, QtWidgets.QApplication.translate(
|
||||
"Form", "Error"), QtWidgets.QApplication.translate("Form", "Unable to send the data!"))
|
||||
else:
|
||||
if response == 200:
|
||||
QtWidgets.QMessageBox.information(None, QtWidgets.QApplication.translate(
|
||||
"Form", "Thanks"), QtWidgets.QApplication.translate("Form", "Thanks for sending!"))
|
||||
elif response == -1:
|
||||
QtWidgets.QMessageBox.information(None, QtWidgets.QApplication.translate(
|
||||
"Form", "Seriously?"), QtWidgets.QApplication.translate("Form", "Yeah, not sending that."))
|
||||
else:
|
||||
QtWidgets.QMessageBox.information(None, QtWidgets.QApplication.translate(
|
||||
"Form", "Error"), QtWidgets.QApplication.translate("Form", "Unable to send the data!"))
|
||||
|
||||
self.hide()
|
||||
|
Reference in New Issue
Block a user