summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@lmu.de>2013-10-05 22:55:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-05 19:48:39 -0700
commit05eabae62a5c98026161980f7bcc9aef9a6f37d6 (patch)
tree51b5d6a6ea72e6601c55fa0be4be5d45ca7c8fd9 /qt-ui
parent5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7 (diff)
downloadsubsurface-05eabae62a5c98026161980f7bcc9aef9a6f37d6.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp10
-rw-r--r--qt-ui/diveplanner.ui2
2 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index d183b4a15..1976fcb9d 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -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);
diff --git a/qt-ui/diveplanner.ui b/qt-ui/diveplanner.ui
index 462c26e48..5c2f1ef69 100644
--- a/qt-ui/diveplanner.ui
+++ b/qt-ui/diveplanner.ui
@@ -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>