Port to non-deprecated KJob::uiDelegate()

parent 30ba51a6
......@@ -478,7 +478,7 @@ void FSViewBrowserExtension::del()
KIO::JobUiDelegate::Delete, KIO::JobUiDelegate::DefaultConfirmation)) {
KIO::Job *job = KIO::del(urls);
KJobWidgets::setWindow(job, _view);
job->ui()->setAutoErrorHandlingEnabled(true);
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
connect(job, SIGNAL(result(KJob*)),
this, SLOT(refresh()));
}
......@@ -498,7 +498,7 @@ void FSViewBrowserExtension::trash(Qt::MouseButtons, Qt::KeyboardModifiers modif
KIO::Job *job = KIO::trash(urls);
KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Trash, urls, QUrl("trash:/"), job);
KJobWidgets::setWindow(job, _view);
job->ui()->setAutoErrorHandlingEnabled(true);
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
connect(job, SIGNAL(result(KJob*)),
this, SLOT(refresh()));
}
......
......@@ -830,7 +830,7 @@ void Sidebar_Widget::slotStatResult(KJob *job)
{
KIO::StatJob *statJob = static_cast<KIO::StatJob *>(job);
if (statJob->error()) {
statJob->ui()->showErrorMessage();
statJob->uiDelegate()->showErrorMessage();
} else {
const QUrl url = statJob->url();
KFileItem item(statJob->statResult(), url);
......
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