mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
5a139c934d
commit
05eabae62a
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue