Commit 6ed27d16 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent b0cd3e13
Pipeline #210492 passed with stage
in 1 minute and 3 seconds
......@@ -155,7 +155,7 @@ void KDirSelectDialog::Private::slotMkdir()
if (exists) { // url was already existent
QString which = folderurl.toDisplayString(QUrl::PreferLocalFile);
KMessageBox::sorry(m_parent, i18n("A file or folder named %1 already exists.", which));
KMessageBox::error(m_parent, i18n("A file or folder named %1 already exists.", which));
// Select the existing dir (if a file with that name exists, it won't be selected since
// we only show dirs here, this is cheaper than checking if the existing item is a file
// or folder).
......@@ -164,7 +164,7 @@ void KDirSelectDialog::Private::slotMkdir()
}
if (!writeOk) {
KMessageBox::sorry(m_parent, i18n("You do not have permission to create that folder."));
KMessageBox::error(m_parent, i18n("You do not have permission to create that folder."));
return;
}
......
Supports Markdown
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