mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
redraw profile (actually clean it) if no dive is selected
otherwise the previous selected dive is still visible in the profile view. clicking on edit crashs subsurface: null pointer dereference in editCurrentDive as it uses 'current_dive' which is null. Signed-off-by: Martin Gysel <me@bearsh.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
26dab9b5ce
commit
d9ca999a17
1 changed files with 1 additions and 1 deletions
|
@ -86,8 +86,8 @@ void MainWindow::current_dive_changed(int divenr)
|
||||||
if (divenr >= 0) {
|
if (divenr >= 0) {
|
||||||
select_dive(divenr);
|
select_dive(divenr);
|
||||||
ui.globe->centerOn(get_dive(selected_dive));
|
ui.globe->centerOn(get_dive(selected_dive));
|
||||||
redrawProfile();
|
|
||||||
}
|
}
|
||||||
|
redrawProfile();
|
||||||
ui.InfoWidget->updateDiveInfo(divenr);
|
ui.InfoWidget->updateDiveInfo(divenr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue