Commit bb4bab81 authored by David Faure's avatar David Faure
Browse files

autotests: use ui_standards.rc from qrc from unittests

It gets really confusing otherwise, that tests are picking up the
installed ui_standards.rc even though the local one is different.
parent a9235b34
......@@ -197,6 +197,9 @@ void KXMLGUIClient::setComponentName(const QString &componentName, const QString
QString KXMLGUIClient::standardsXmlFileLocation()
if (QStandardPaths::isTestModeEnabled()) {
return QStringLiteral(":/kxmlgui5/ui_standards.rc");
QString file = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("ui/ui_standards.rc"));
if (file.isEmpty()) {
// fallback to resource, to allow to use the rc file compiled into this framework, must exist!
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