mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Untangle Profile from MainWindow: remove silly indirection
Ummm. What? That one was awesome. This seems easier :-) MainWindow::instance()->graphics() is a way to retrieve a pointer to the profile widget... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e70e34801e
commit
4ec5ce4c7a
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ void ProfileWidget2::deleteCurrentDC()
|
|||
delete_current_divecomputer();
|
||||
mark_divelist_changed(true);
|
||||
// we need to force it since it's likely the same dive and same dc_number - but that's a different dive computer now
|
||||
MainWindow::instance()->graphics()->plotDive(0, true);
|
||||
plotDive(0, true);
|
||||
|
||||
emit refreshDisplay(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue