Commit 949e9998 authored by Elvis Angelaccio's avatar Elvis Angelaccio

mainwindow: use setXMLFile

setupGUI() without the `Create` flag just ignores the QString argument.
KPart's mainwindows instead are supposed to use setXMLFile() before the
setupGUI() call. This only worked because kxmlgui is smart enough to
figure out the name of the .rc file from the name of the app.
parent 0aacd586
......@@ -153,7 +153,8 @@ bool MainWindow::loadPart()
m_part->setObjectName(QStringLiteral("ArkPart"));
setCentralWidget(m_part->widget());
setupGUI(ToolBar | Keys | Save, QStringLiteral("arkui.rc"));
setXMLFile(QStringLiteral("arkui.rc"));
setupGUI(ToolBar | Keys | Save);
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