diff options
author | Paul Buxton <paulbuxton.mail@googlemail.com> | 2019-08-28 10:21:24 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-29 12:55:25 -0700 |
commit | 3c4fd5d5999db218878563a98e9c76903d63d2bb (patch) | |
tree | 9c3bf3bba466063e5ad599d43795254acce9d798 /desktop-widgets/downloadfromdivecomputer.cpp | |
parent | 193c456f06c022c1d83d4f0238c46c541a726c3c (diff) | |
download | subsurface-3c4fd5d5999db218878563a98e9c76903d63d2bb.tar.gz |
Fix broken windows build with latest MXE
Replaces some enums with names that do not clash with windows #defines.
Specifically:
ERROR -> ERRORED, PASCAL->PASCALS, IGNORE->IGNORED,FLOAT->FLOATVAL
Signed-off-by: Paul Buxton <paulbuxton.mail@googlemail.com>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r-- | desktop-widgets/downloadfromdivecomputer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index 769d4a913..65c4c5236 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -244,7 +244,7 @@ void DownloadFromDCWidget::updateState(states state) // user pressed cancel but the application isn't doing anything. // means close the window - else if ((currentState == INITIAL || currentState == DONE || currentState == ERROR) && state == CANCELLING) { + else if ((currentState == INITIAL || currentState == DONE || currentState == ERRORED) && state == CANCELLING) { timer->stop(); reject(); } @@ -294,7 +294,7 @@ void DownloadFromDCWidget::updateState(states state) } // got an error - else if (state == ERROR) { + else if (state == ERRORED) { timer->stop(); QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), thread.error), QMessageBox::Ok); @@ -503,7 +503,7 @@ void DownloadFromDCWidget::onDownloadThreadFinished() if (thread.error.isEmpty()) updateState(DONE); else - updateState(ERROR); + updateState(ERRORED); } else if (currentState == CANCELLING) { updateState(DONE); } @@ -524,7 +524,7 @@ void DownloadFromDCWidget::on_cancel_clicked() void DownloadFromDCWidget::on_ok_clicked() { - if (currentState != DONE && currentState != ERROR) + if (currentState != DONE && currentState != ERRORED) return; struct dive_table *table = thread.table(); struct dive_site_table *sites = thread.sites(); |