From 9611e92cf0d90e4ce1eaf3c3adbaac0f78f4c884 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 31 May 2018 16:36:34 +0200 Subject: 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 Signed-off-by: Berthold Stoeger --- desktop-widgets/usermanual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/usermanual.cpp') diff --git a/desktop-widgets/usermanual.cpp b/desktop-widgets/usermanual.cpp index 69000dd54..83bffb521 100644 --- a/desktop-widgets/usermanual.cpp +++ b/desktop-widgets/usermanual.cpp @@ -56,7 +56,7 @@ MyQWebEngineView::MyQWebEngineView(QWidget* parent) } #endif -UserManual::UserManual(QWidget *parent) : QWidget(parent) +UserManual::UserManual(QWidget *parent) : QDialog(parent) { QShortcut *closeKey = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this); connect(closeKey, SIGNAL(activated()), this, SLOT(close())); -- cgit v1.2.3-70-g09d2