summaryrefslogtreecommitdiffstats
path: root/qt-ui/divecomputermanagementdialog.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/divecomputermanagementdialog.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/divecomputermanagementdialog.cpp')
-rw-r--r--qt-ui/divecomputermanagementdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/divecomputermanagementdialog.cpp b/qt-ui/divecomputermanagementdialog.cpp
index 510756e42..883c8e9a7 100644
--- a/qt-ui/divecomputermanagementdialog.cpp
+++ b/qt-ui/divecomputermanagementdialog.cpp
@@ -42,9 +42,9 @@ void DiveComputerManagementDialog::tryRemove(const QModelIndex& index)
return;
QMessageBox::StandardButton response = QMessageBox::question(
- this,
+ this, TITLE_OR_TEXT(
tr("Remove the selected Dive Computer?"),
- tr("Are you sure that you want to \n remove the selected dive computer?"),
+ tr("Are you sure that you want to \n remove the selected dive computer?")),
QMessageBox::Ok | QMessageBox::Cancel
);