Commit dd26b75a authored by magho's avatar magho

bugfix and changed dialog icons

parent 02bfa337
......@@ -168,14 +168,14 @@ TODO: Scan RFID card to buy Cart.
# Send warning no item found
none_message = "API failed to return an item for location {0}.".format(location)
warning = TimerMessageBox(message=none_message, parent=self)
warning.setIcon(QtWidgets.QMessageBox.Critical)
warning.setIcon(QtWidgets.QMessageBox.Warning)
warning.show()
return
elif 'error' in item.keys():
# Warn about API error
api_message = "API returned error '{0}' for location '{1}.".format(item['error'], location)
warning = TimerMessageBox(message=api_message, parent=self)
warning.setIcon(QtWidgets.QMessageBox.Critical)
warning.setIcon(QtWidgets.QMessageBox.Information)
warning.show()
return
......
......@@ -303,7 +303,7 @@ Double click an item to add it to the cart."""
if lager_choice == None:
# Display critical warning
missing_message = "No valid storage position was found for this item. Please contact a workshop board member."
warning = TimerMessageBox(message=baklager_message, parent=self)
warning = TimerMessageBox(message=missing_message, parent=self)
warning.setIcon(QtWidgets.QMessageBox.Critical)
warning.show()
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment