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
This commit is contained in:
Jekyll Wu
2011-10-05 12:53:22 +08:00
parent 3fc7f9c147
commit 9b63c034a6

View File

@@ -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());
}