profile: remove enableToolbar() signal

When showing the "empty-state", the profile toolbar was
disabled. This was done via a "reverse" signal from the
profile to the MainWindow. Instead control the toolbar
in the MainWindow directly. Break out the plot-dive
functionality into a member function and there test
whether a dive is shown or not.

The signal makes no sense in the context of mobile
or printing.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-04-09 22:28:54 +02:00 committed by Dirk Hohndel
parent 8c72ac6b9b
commit 8939b6a99b
4 changed files with 12 additions and 9 deletions

View file

@ -236,6 +236,7 @@ private:
void setQuadrantWidgets(QSplitter &splitter, const Quadrant &left, const Quadrant &right);
void registerApplicationState(ApplicationState state, Quadrants q);
void disableShortcuts(bool disablePaste = true);
void plotCurrentDive();
void enableShortcuts();
QMenu *connections;