From 05eabae62a5c98026161980f7bcc9aef9a6f37d6 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 5 Oct 2013 22:55:01 +0200 Subject: Modify the dialog text for the question to make more sense. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 10 +++++----- qt-ui/diveplanner.ui | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'qt-ui') 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 @@ - QDialogButtonBox::Cancel|QDialogButtonBox::Ok + QDialogButtonBox::Abort|QDialogButtonBox::Save -- cgit v1.2.3-70-g09d2