Untangle Profile from MainWindow: update main tab via signal

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-05 13:11:26 -08:00
parent 4ec5ce4c7a
commit 2b9316e16a
3 changed files with 4 additions and 1 deletions

View file

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

View file

@ -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.