mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
8aadd4d372
commit
995192c5fb
6 changed files with 18 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue