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>
This commit is contained in:
Berthold Stoeger 2018-10-12 16:13:42 +02:00 committed by Dirk Hohndel
parent 78e2560296
commit 068b01aef2
10 changed files with 89 additions and 89 deletions

View file

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