Commit aad42a73 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Don't pass Create to setupGUI()

This is recommended by the KXMLGuiWindow documentation. Passing Create to
setupGUI() will end up calling createGUI(), but KParts::MainWindow instances
are supposed to call createGUI(part) instead.

See also:
https://api.kde.org/frameworks/kxmlgui/html/classKXmlGuiWindow.html#a938a747d4c9aad833848dee2e0b3121fab21e394f15c27dba750c4e5e88427184
parent 30646f2c
......@@ -147,7 +147,7 @@ bool MainWindow::loadPart()
m_part->setObjectName(QStringLiteral("ArkPart"));
setCentralWidget(m_part->widget());
setupGUI(ToolBar | Keys | Save | Create, QStringLiteral("arkui.rc"));
setupGUI(ToolBar | Keys | Save, QStringLiteral("arkui.rc"));
createGUI(m_part);
statusBar()->hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment