File Write-profile-changes-to-Konsoles-location.patch of Package konsole.5441

From: Kurt Hindenburg <kurt.hindenburg@gmail.com>
Date: Sun, 03 Jul 2016 16:26:05 +0000
Subject: Write profile changes to Konsole's location, not KPart's app
X-Git-Url: http://quickgit.kde.org/?p=konsole.git&a=commitdiff&h=b9261c58ab2cf91ec090e4ad15064286a5366642
---
Write profile changes to Konsole's location, not KPart's app

Thanks to Wolfgang Bauer (wbauer tmo at) for patch

REVIEW:128342
BUG: 364336
---


--- a/src/ProfileWriter.cpp
+++ b/src/ProfileWriter.cpp
@@ -40,11 +42,9 @@
 // All profiles changes are stored under users' local account
 QString KDE4ProfileWriter::getPath(const Profile::Ptr profile)
 {
-#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
+    // If any changes are made to this location, check that programs using
+    // the Konsole part can write/save profiles
     static const QString localDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/konsole");
-#else
-    static const QString localDataLocation = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
-#endif
 
     return localDataLocation % "/" % profile->untranslatedName() % ".profile";
 }

openSUSE Build Service is sponsored by