Commit 1834b9a9 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that text is not empty

parent b8a83d2b
......@@ -371,7 +371,7 @@ void CollapsibleEffect::slotEffectDown()
void CollapsibleEffect::slotSaveEffect()
QString name = QInputDialog::getText(this, i18n("Save Effect"), i18n("Name for saved effect: "));
if (name.isEmpty()) {
if (name.trimmed().isEmpty()) {
QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QStringLiteral("/effects/"));
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