Blob Blame History Raw
From b9261c58ab2cf91ec090e4ad15064286a5366642 Mon Sep 17 00:00:00 2001
From: Kurt Hindenburg <kurt.hindenburg@gmail.com>
Date: Sun, 3 Jul 2016 12:26:05 -0400
Subject: [PATCH 58/69] Write profile changes to Konsole's location, not
 KPart's app

Thanks to Wolfgang Bauer (wbauer tmo at) for patch

REVIEW:128342
BUG: 364336
---
 src/ProfileWriter.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/ProfileWriter.cpp b/src/ProfileWriter.cpp
index 32b8962..5006612 100644
--- a/src/ProfileWriter.cpp
+++ b/src/ProfileWriter.cpp
@@ -32,6 +32,8 @@
 // Konsole
 #include "ShellCommand.h"
 
+#include <QDebug>
+
 using namespace Konsole;
 
 // FIXME: A dup line from Profile.cpp - redo these
@@ -40,11 +42,9 @@ static const char GENERAL_GROUP[]     = "General";
 // 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";
 }
-- 
1.9.3