From 9b63c034a6b3c8f6c7becbd1bd9d43ac5857fb41 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Wed, 5 Oct 2011 12:53:22 +0800 Subject: [PATCH] Always read/write the 'DefaultProfile' entry from/into 'konsolerc'. That means the default profile is shared among konsole and all host apps of konsole kpart. That is not ideal enough, but much better than current inconsistent read/write for the 'DefaultProfile' entry. BUG:251602 FIXED-IN: 4.8 --- src/SessionManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SessionManager.cpp b/src/SessionManager.cpp index 9a465aba1..dd548d21a 100644 --- a/src/SessionManager.cpp +++ b/src/SessionManager.cpp @@ -596,7 +596,7 @@ void SessionManager::setDefaultProfile(Profile::Ptr profile) QFileInfo fileInfo(path); - KSharedConfigPtr config = KGlobal::config(); + KSharedConfigPtr config = KSharedConfig::openConfig("konsolerc"); KConfigGroup group = config->group("Desktop Entry"); group.writeEntry("DefaultProfile",fileInfo.fileName()); }