summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-12-14 22:33:22 -0500
committerKurt Hindenburg <[email protected]>2017-12-14 22:33:22 -0500
commit87642c93492d3834dc19dc1e49e371ea65e0ae2d (patch)
tree2aba942f028924d7a208c5f6c07955fc3421419a
parent652e48cf6fdb01b23163a0f1d5963def5295f0e9 (diff)
Do not load a profile if it does not have a Name=
-rw-r--r--src/ProfileManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ProfileManager.cpp b/src/ProfileManager.cpp
index db79828..61f9f63 100644
--- a/src/ProfileManager.cpp
+++ b/src/ProfileManager.cpp
@@ -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;