Modify the dialog text for the question to make more sense.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2013-10-05 22:55:01 +02:00 committed by Dirk Hohndel
parent 5a139c934d
commit 05eabae62a
2 changed files with 6 additions and 6 deletions

View file

@ -1150,9 +1150,9 @@ struct diveplan DivePlannerPointsModel::getDiveplan()
void DivePlannerPointsModel::cancelPlan() void DivePlannerPointsModel::cancelPlan()
{ {
if (mode == PLAN && rowCount()) { if (mode == PLAN && rowCount()) {
if (QMessageBox::warning(mainWindow(), tr("Save the Plan?"), if (QMessageBox::warning(mainWindow(), tr("Discard the Plan?"),
tr("You have a working plan, \n are you sure that you wanna cancel it?"), tr("You are about to discard your plan."),
QMessageBox::Ok | QMessageBox::Cancel) != QMessageBox::Ok) { QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard) != QMessageBox::Discard) {
return; return;
} }
} }

View file

@ -128,7 +128,7 @@
<item row="8" column="0" colspan="2"> <item row="8" column="0" colspan="2">
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons"> <property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> <set>QDialogButtonBox::Abort|QDialogButtonBox::Save</set>
</property> </property>
</widget> </widget>
</item> </item>