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

React when we click on cancel

parent ffa655f6
......@@ -119,7 +119,11 @@ void SelectImapFolderWidget::createFolder()
{
const QModelIndex index = mTreeView->currentIndex();
if (index.isValid()) {
const QString name = QInputDialog::getText(this, i18n("Create Folder"), i18n("Folder Name:"));
bool ok = false;
const QString name = QInputDialog::getText(this, i18n("Create Folder"), i18n("Folder Name:"), {}, {}, &ok);
if (!ok) {
return;
}
if (!name.trimmed().isEmpty()) {
const QString currentPath = index.data(SelectImapLoadFoldersJob::PathRole).toString();
if (name.contains(QLatin1Char('/'))) {
......
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