dbdf4068f8
- Add fix-bookmarks-migration.patch to fix bookmarks migration from the KDE4 version (boo#983900, kde#361823) OBS-URL: https://build.opensuse.org/request/show/405495 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/krdc?expand=0&rev=33
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From: Wolfgang Bauer <wbauer@tmo.at>
|
|
Date: Sat, 25 Jun 2016 11:12:46 +0000
|
|
Subject: Fix bookmarks migration from the KDE4 version
|
|
X-Git-Url: http://quickgit.kde.org/?p=krdc.git&a=commitdiff&h=7d9ad0152dbc47c30f261c9d4c026e01bea31b7d
|
|
---
|
|
Fix bookmarks migration from the KDE4 version
|
|
|
|
targetBasePath needs a trailing slash because the file name is appended
|
|
afterwards.
|
|
|
|
BUG: 361823
|
|
FIXED-IN: 16.04.3
|
|
REVIEW: 128281
|
|
---
|
|
|
|
|
|
--- a/main.cpp
|
|
+++ b/main.cpp
|
|
@@ -52,7 +52,7 @@
|
|
if (migrate.migrate()) {
|
|
Kdelibs4Migration dataMigrator;
|
|
const QString sourceBasePath = dataMigrator.saveLocation("data", QStringLiteral("krdc"));
|
|
- const QString targetBasePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/krdc");
|
|
+ const QString targetBasePath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/krdc/");
|
|
QString targetFilePath;
|
|
QDir sourceDir(sourceBasePath);
|
|
QDir targetDir(targetBasePath);
|
|
|