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>
This commit is contained in:
Dirk Hohndel 2013-11-21 04:23:10 -08:00
parent 8aadd4d372
commit 995192c5fb
6 changed files with 18 additions and 13 deletions

View file

@ -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
);