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:
Dirk Hohndel 2015-11-05 13:05:09 -08:00
parent e70e34801e
commit 4ec5ce4c7a

View file

@ -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);
}