forked from gentoo/kde
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kde-apps/umbrello: Rebase gentoo-docbundledir.patch on top of 24.12
Broken by foreach-loop to for-loop conversion Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 20e7b4e1cf4e150e7de2d9fa3f0ee43f434e8ec3 Mon Sep 17 00:00:00 2001 | ||
From ce2c9900c36376cde471344e699b37f28ececd98 Mon Sep 17 00:00:00 2001 | ||
From: Andreas Sturmlechner <[email protected]> | ||
Date: Thu, 5 Nov 2020 14:39:51 +0100 | ||
Subject: [PATCH] Fix hardcoded docbook install paths for Gentoo | ||
|
@@ -11,13 +11,13 @@ Signed-off-by: Andreas Sturmlechner <[email protected]> | |
1 file changed, 4 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/umbrello/umlappprivate.cpp b/umbrello/umlappprivate.cpp | ||
index 08c138518..28e5d3086 100644 | ||
index 8966837fb..d5a56bfd8 100644 | ||
--- a/umbrello/umlappprivate.cpp | ||
+++ b/umbrello/umlappprivate.cpp | ||
@@ -33,17 +33,17 @@ QString UMLAppPrivate::findWelcomeFile() | ||
|
||
// from custom install | ||
foreach(const QString &lang, langList) { | ||
for(const QString &lang : langList) { | ||
- dirList.append(QCoreApplication::applicationDirPath() + QString(QStringLiteral("/../share/doc/HTML/%1/umbrello/apphelp")).arg(lang)); | ||
+ dirList.append(QCoreApplication::applicationDirPath() + QString(QStringLiteral("/../share/help/%1/umbrello/apphelp")).arg(lang)); | ||
} | ||
|
@@ -26,16 +26,16 @@ index 08c138518..28e5d3086 100644 | |
|
||
QStringList locations = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation); | ||
// from real installation | ||
foreach(const QString &location, locations) { | ||
foreach(const QString &lang, langList) { | ||
for(const QString &location : locations) { | ||
for (const QString &lang : langList) { | ||
- dirList.append(QString(QStringLiteral("%1/doc/HTML/%2/umbrello/apphelp")).arg(location).arg(lang)); | ||
+ dirList.append(QString(QStringLiteral("%1/help/%2/umbrello/apphelp")).arg(location).arg(lang)); | ||
} | ||
- dirList.append(QString(QStringLiteral("%1/doc/HTML/en/umbrello/apphelp")).arg(location)); | ||
+ dirList.append(QString(QStringLiteral("%1/help/en/umbrello/apphelp")).arg(location)); | ||
} | ||
foreach(const QString &dir, dirList) { | ||
for(const QString &dir : dirList) { | ||
QString filePath = dir + QStringLiteral("/index.cache.bz2"); | ||
-- | ||
2.40.0 | ||
2.47.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters