diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 13:05:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 13:45:51 -0800 |
commit | 4ec5ce4c7a69acc682a9ed03b0170bf0f43c88af (patch) | |
tree | ef1cf4ced2aaa107b99e1879aac642232aa4afdd | |
parent | e70e34801eaacfd3d44cbcb202f570f25b1fc615 (diff) | |
download | subsurface-4ec5ce4c7a69acc682a9ed03b0170bf0f43c88af.tar.gz |
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>
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 7b46d6b22..d7da0b7e3 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -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); } |