diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-12 16:13:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-13 21:42:53 -0400 |
commit | 068b01aef203ee12c2d538141621c8ab5b13f0c8 (patch) | |
tree | 443d4b8fbe7f93542e8ed3f459434f5ceba8b5f7 /desktop-widgets/downloadfromdivecomputer.cpp | |
parent | 78e2560296bbcc9209dec947417feb8da5a5107c (diff) | |
download | subsurface-068b01aef203ee12c2d538141621c8ab5b13f0c8.tar.gz |
Cleanup: rename MainWindow member variables
Instead of the weirdly named "information" and the inconsistent
"dive_list" use the logical "mainTab" and the camel-cased
"diveList", respectively.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.cpp')
-rw-r--r-- | desktop-widgets/downloadfromdivecomputer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp index 1b88431ee..e27a8a6ad 100644 --- a/desktop-widgets/downloadfromdivecomputer.cpp +++ b/desktop-widgets/downloadfromdivecomputer.cpp @@ -527,7 +527,7 @@ void DownloadFromDCWidget::on_ok_clicked() delete_dive_from_table(&downloadTable, j); } - MainWindow::instance()->dive_list->unselectDives(); + MainWindow::instance()->diveList->unselectDives(); if (downloadTable.nr > 0) { // remember the last downloaded dive (on most dive computers this will be the chronologically @@ -542,8 +542,8 @@ void DownloadFromDCWidget::on_ok_clicked() int idx = get_idx_by_uniq_id(uniqId); // this shouldn't be necessary - but there are reports that somehow existing dives stay selected // (but not visible as selected) - MainWindow::instance()->dive_list->unselectDives(); - MainWindow::instance()->dive_list->selectDive(idx, true); + MainWindow::instance()->diveList->unselectDives(); + MainWindow::instance()->diveList->selectDive(idx, true); } if (ostcFirmwareCheck && currentState == DONE) { |