diff options
author | Robert C. Helling <helling@lmu.de> | 2013-10-05 22:55:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-05 19:48:39 -0700 |
commit | 05eabae62a5c98026161980f7bcc9aef9a6f37d6 (patch) | |
tree | 51b5d6a6ea72e6601c55fa0be4be5d45ca7c8fd9 /qt-ui/diveplanner.cpp | |
parent | 5a139c934dcd5ee3514c04ac9dc3e1dcb0a13ff7 (diff) | |
download | subsurface-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/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 10 |
1 files changed, 5 insertions, 5 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); |