summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
commit995192c5fb6bd890741ef2da873da4befd2120c4 (patch)
treed4b797ecaad613a9a4454aa17efb65c405859e83 /qt-ui/diveplanner.cpp
parent8aadd4d3726bda224d5215bb810e3e37dff53b28 (diff)
downloadsubsurface-995192c5fb6bd890741ef2da873da4befd2120c4.tar.gz
Work around QMessageBox not showing its title on Mac
This is a bit hacky and simply adds the title to the message text when compiling on a Mac, but hopefully this will be enough. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 7be7263b8..0c17488e4 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -1272,8 +1272,8 @@ struct diveplan DivePlannerPointsModel::getDiveplan()
void DivePlannerPointsModel::cancelPlan()
{
if (mode == PLAN && rowCount()) {
- if (QMessageBox::warning(mainWindow(), tr("Discard the Plan?"),
- tr("You are about to discard your plan."),
+ if (QMessageBox::warning(mainWindow(), TITLE_OR_TEXT(tr("Discard the Plan?"),
+ tr("You are about to discard your plan.")),
QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard) != QMessageBox::Discard) {
return;
}