mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
78e2560296
commit
068b01aef2
10 changed files with 89 additions and 89 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue