message text improved
This commit is contained in:
parent
a89c624132
commit
0f786a04e1
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ void PriceDialog::accept()
|
||||||
{
|
{
|
||||||
if (static_cast<int>(std::round(ui_.priceSpinBox->value() * 100.0L)) % 50 != 0) {
|
if (static_cast<int>(std::round(ui_.priceSpinBox->value() * 100.0L)) % 50 != 0) {
|
||||||
QMessageBox(QMessageBox::Icon::Warning, "Falsche Preiseingabe",
|
QMessageBox(QMessageBox::Icon::Warning, "Falsche Preiseingabe",
|
||||||
"Es sind 0,50 Cent-Schritte erlaubt", QMessageBox::StandardButton::Ok, this)
|
"Es sind nur 0,50 Cent-Schritte erlaubt.", QMessageBox::StandardButton::Ok,
|
||||||
|
this)
|
||||||
.exec();
|
.exec();
|
||||||
} else {
|
} else {
|
||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
|
|
Loading…
Reference in a new issue