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

View file

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