Commit c254ee56 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add destUrl to jobs

Allows the job view server to know what is the actual destination
of a job and provide useful actions ("Open Containing Folder")
when the job is done.

BUG: 408778
parent 4f7cd977
......@@ -240,6 +240,8 @@ void BatchExtract::setDestinationFolder(const QString& folder)
{
if (QFileInfo(folder).isDir()) {
m_destinationFolder = folder;
// Magic property that tells the job tracker the job's destination
setProperty("destUrl", QUrl::fromLocalFile(folder).toString());
}
}
......
......@@ -509,6 +509,8 @@ ExtractJob::ExtractJob(const QVector<Archive::Entry*> &entries, const QString &d
, m_options(options)
{
qCDebug(ARK) << "Created job instance";
// Magic property that tells the job tracker the job's destination
setProperty("destUrl", QUrl::fromLocalFile(destinationDir).toString());
}
void ExtractJob::doWork()
......
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