Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 87642c93 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Do not load a profile if it does not have a Name=

parent 652e48cf
......@@ -190,6 +190,9 @@ Profile::Ptr ProfileManager::loadProfile(const QString& shortPath)
if (!result) {
qCDebug(KonsoleDebug) << "Could not load profile from " << path;
return Profile::Ptr();
} else if (newProfile->name().isEmpty()) {
qCWarning(KonsoleDebug) << path << " does not have a valid name, ignoring.";
return Profile::Ptr();
} else {
addProfile(newProfile);
return newProfile;
......
Markdown is supported
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