Commit eef66c1c authored by Volker Krause's avatar Volker Krause
Browse files

Actually start the deletion/trash job

Fixes a regression introduced by 1eea70e7.

BUG: 461761

(cherry picked from commit b69c9387)
parent cedd4589
Pipeline #269026 passed with stage
in 1 minute and 51 seconds
......@@ -154,6 +154,8 @@ static void delOrTrash(KIO::JobUiDelegate::DeletionType deletionType, const QLis
default: // e.g. EmptyTrash
return;
}
Q_ASSERT(job);
KJobWidgets::setWindow(job, parent);
#else
KJob *job = nullptr;
switch (deletionType) {
......@@ -166,9 +168,10 @@ static void delOrTrash(KIO::JobUiDelegate::DeletionType deletionType, const QLis
default: // e.g. EmptyTrash
return;
}
#endif
Q_ASSERT(job);
KJobWidgets::setWindow(job, parent);
job->start();
#endif
for (const QUrl &url : urlList) {
DocumentFactory::instance()->forget(url);
......
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