Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rhabacker:branches:windows:mingw:win32:KF565
mingw32-kxmlgui
0001-Fix-ui_standards.rc-default-location-on-Wi...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-ui_standards.rc-default-location-on-Windows-whic.patch of Package mingw32-kxmlgui
From 1151915962ae4f1a8f833412a1dbd80c482beee5 Mon Sep 17 00:00:00 2001 From: Ralf Habacker <ralf.habacker@freenet.de> Date: Tue, 22 Dec 2015 10:22:09 +0100 Subject: [PATCH] Fix ui_standards.rc default location on Windows, which is <install-root>/etc/xdg. --- src/kxmlguiclient.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kxmlguiclient.cpp b/src/kxmlguiclient.cpp index ae6bcaa..ec763f6 100644 --- a/src/kxmlguiclient.cpp +++ b/src/kxmlguiclient.cpp @@ -29,6 +29,7 @@ #include <QDir> #include <QFile> #include <QDomDocument> +#include <QLibraryInfo> #include <QPointer> #include <QCoreApplication> #include <QStandardPaths> @@ -197,7 +198,11 @@ void KXMLGUIClient::setComponentName(const QString &componentName, const QString QString KXMLGUIClient::standardsXmlFileLocation() { +#ifdef Q_OS_WIN + QString file = QLibraryInfo::location(QLibraryInfo::ArchDataPath) + QStringLiteral("/xdg/ui/ui_standards.rc"); +#else QString file = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("ui/ui_standards.rc")); +#endif if (file.isEmpty()) { // fallback to resource, to allow to use the rc file compiled into this framework, must exist! file = QStringLiteral(":/kxmlgui5/ui_standards.rc"); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor