diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-05-31 16:36:34 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-31 21:29:29 +0300 |
commit | 9611e92cf0d90e4ce1eaf3c3adbaac0f78f4c884 (patch) | |
tree | 94b5034fe3ce9afbb0b6d082df40dfcb22f2e619 /desktop-widgets/mainwindow.h | |
parent | 294c3bcfd1c43da9cc5db3d51fd2f3b23c50ac4b (diff) | |
download | subsurface-9611e92cf0d90e4ce1eaf3c3adbaac0f78f4c884.tar.gz |
Desktop: Derive UserManual from QDialog
In commit d21d42b69117aae04b68ecc9cc2139e034bde146 helpView was made
a child-object of MainWindow, which is Qt's idiomatic way of having
helpView deleted with MainWindow.
As an unintended consequence, the helpView didn't show. The reason
is that UserManual derives directly from QObject. In contrast, UserSurvey
derives from QDialog and is correctly shown. Therefore also derive
UserManual from QDialog.
Reported-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r-- | desktop-widgets/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 3a9848f62..00ddd86b7 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -191,7 +191,9 @@ private: Ui::MainWindow ui; QAction *actionNextDive; QAction *actionPreviousDive; +#ifndef NO_USERMANUAL UserManual *helpView; +#endif CurrentState state; CurrentState stateBeforeEdit; QString filter_open(); |