mirror of
https://github.com/KDE/konsole.git
synced 2026-05-07 06:05:18 -04:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user