Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 8e638883 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that it's not empty

parent 4e4c9bef
......@@ -386,7 +386,7 @@ void CollectionGeneralPage::slotNameChanged(const QString &name)
if (name.startsWith(QLatin1Char('.'))
|| name.endsWith(QLatin1Char('.'))
|| name.contains(QLatin1Char('/'))
|| name.isEmpty()) {
|| name.trimmed().isEmpty()) {
if (mColorName.isEmpty()) {
const KColorScheme::BackgroundRole bgColorScheme(KColorScheme::NegativeBackground);
KStatefulBrush bgBrush(KColorScheme::View, bgColorScheme);
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