Commit 1a93b090 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Use QUrl to get the profile file name

Cheaper than constructing a QFileInfo.
parent 124756f6
Pipeline #89938 passed with stage
in 1 minute and 50 seconds
......@@ -436,11 +436,9 @@ void ProfileManager::saveDefaultProfile()
path = writer.getPath(_defaultProfile);
QFileInfo fileInfo(path);
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup group = appConfig->group("Desktop Entry");
group.writeEntry("DefaultProfile", fileInfo.fileName());
group.writeEntry("DefaultProfile", QUrl::fromLocalFile(path).fileName());
void ProfileManager::loadShortcuts()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment