summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 13:11:26 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 13:45:51 -0800
commit2b9316e16ab94b1a8ef7a0c5abbce2f80abf5053 (patch)
tree03cc0b62eb754c7e543f43f1aa96e7ab2012da42 /profile-widget
parent4ec5ce4c7a69acc682a9ed03b0170bf0f43c88af (diff)
downloadsubsurface-2b9316e16ab94b1a8ef7a0c5abbce2f80abf5053.tar.gz
Untangle Profile from MainWindow: update main tab via signal
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp2
-rw-r--r--profile-widget/profilewidget2.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index d7da0b7e3..c72f2e95b 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1476,7 +1476,7 @@ void ProfileWidget2::changeGas()
// FIXME - this no longer gets written to the dive list - so we need to enableEdition() here
- MainWindow::instance()->information()->updateDiveInfo();
+ emit updateDiveInfo(false);
mark_divelist_changed(true);
replot();
}
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 5fc6e8d4b..f5977eb22 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -93,6 +93,7 @@ signals:
void enableShortcuts();
void disableShortcuts(bool paste);
void refreshDisplay(bool recreateDivelist);
+ void updateDiveInfo(bool clear);
public
slots: // Necessary to call from QAction's signals.