summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.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/downloadfromdivecomputer.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/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index be9c8e337..e7f655203 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -137,7 +137,7 @@ void DownloadFromDCWidget::updateState(states state)
// got an error
else if (state == ERROR) {
- QMessageBox::critical(this, tr("Error"), this->thread->error, QMessageBox::Ok);
+ QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), this->thread->error), QMessageBox::Ok);
markChildrenAsEnabled();
ui.progressBar->hide();