Commit f5cc7697 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make sure that we don't cancel dialog

parent 738c1a93
Pipeline #70695 skipped
......@@ -180,9 +180,10 @@ void FolderSelectionDialog::slotAddChildFolder()
{
Akonadi::Collection parentCol;
if (canCreateCollection(parentCol)) {
const QString name = QInputDialog::getText(this, i18nc("@title:window", "New Folder"), i18nc("@label:textbox, name of a thing", "Name"));
bool ok = false;
const QString name = QInputDialog::getText(this, i18nc("@title:window", "New Folder"), i18nc("@label:textbox, name of a thing", "Name"), {}, {}, &ok);
if (name.isEmpty()) {
if (name.isEmpty() || !ok) {
return;
}
......
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