Commit c7d67534 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Port away from deprecated KIO::RenameDialog_Mode

parent 9fa1cf59
......@@ -730,7 +730,7 @@ QUrl UrlChecker::checkExistingFile(const QUrl &source, const QUrl &destination)
}
if (wouldOverwrite(source, destination)) {
KIO::RenameDialog_Mode args = static_cast<KIO::RenameDialog_Mode>(KIO::M_MULTI | KIO::M_SKIP | KIO::M_OVERWRITE);
KIO::RenameDialog_Options args = KIO::RenameDialog_MultipleItems | KIO::RenameDialog_Skip | KIO::RenameDialog_Overwrite;
QScopedPointer<KIO::RenameDialog> dlg(new KIO::RenameDialog(KGet::m_mainWindow, i18n("File already exists"), source,
destination, args));
......
......@@ -480,7 +480,7 @@ void AbstractMetalink::filesSelected()
doDownload = false;
//ask the user, unless he has chosen overwriteAll before
} else if (!overwriteAll) {
KIO::RenameDialog dlg(0, i18n("File already exists"), index.data().toString(), dest, KIO::RenameDialog_Mode(KIO::M_MULTI | KIO::M_OVERWRITE | KIO::M_SKIP));
KIO::RenameDialog dlg(0, i18n("File already exists"), index.data().toString(), dest, KIO::RenameDialog_Options(KIO::RenameDialog_MultipleItems | KIO::RenameDialog_Overwrite | KIO::RenameDialog_Skip));
const int result = dlg.exec();
if (result == KIO::R_RENAME) {
......
......@@ -707,7 +707,7 @@ void Metalink::filesSelected()
doDownload = false;
//ask the user, unless he has chosen overwriteAll before
} else if (!overwriteAll) {
KIO::RenameDialog dlg(nullptr, i18n("File already exists"), index.data().toString(), dest, KIO::RenameDialog_Mode(KIO::M_MULTI | KIO::M_OVERWRITE | KIO::M_SKIP));
KIO::RenameDialog dlg(nullptr, i18n("File already exists"), index.data().toString(), dest, KIO::RenameDialog_Options(KIO::RenameDialog_MultipleItems | KIO::RenameDialog_Overwrite | KIO::RenameDialog_Skip));
const int result = dlg.exec();
if (result == KIO::R_RENAME) {
......
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