Don't set Qt::WindowContextHelpButtonHint on Windows as it basically converts the window in to a dialog

Reviewers: ngraham, mlaurent, dfaure

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24340
This commit is contained in:
Hannah von Reth 2019-10-01 23:48:41 +02:00
parent 335b1f048e
commit 557fcfa937

View file

@ -96,7 +96,7 @@ namespace {
}
DolphinMainWindow::DolphinMainWindow() :
KXmlGuiWindow(nullptr, Qt::WindowContextHelpButtonHint),
KXmlGuiWindow(nullptr),
m_newFileMenu(nullptr),
m_helpMenu(nullptr),
m_tabWidget(nullptr),
@ -115,6 +115,9 @@ DolphinMainWindow::DolphinMainWindow() :
m_forwardAction(nullptr)
{
Q_INIT_RESOURCE(dolphin);
#ifndef Q_OS_WIN
setWindowFlags(Qt::WindowContextHelpButtonHint);
#endif
setComponentName(QStringLiteral("dolphin"), QGuiApplication::applicationDisplayName());
setObjectName(QStringLiteral("Dolphin#"));