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
@ -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…
x
Reference in New Issue
Block a user