Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/paste.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 64 | if (!urls.isEmpty()) { | |||
---|---|---|---|---|---|
72 | return job; | 72 | return job; | ||
73 | } | 73 | } | ||
74 | return nullptr; | 74 | return nullptr; | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | static QUrl getDestinationUrl(const QUrl &srcUrl, const QUrl &destUrl, QWidget *widget) | 77 | static QUrl getDestinationUrl(const QUrl &srcUrl, const QUrl &destUrl, QWidget *widget) | ||
78 | { | 78 | { | ||
79 | KIO::StatJob *job = KIO::stat(destUrl, destUrl.isLocalFile() ? KIO::HideProgressInfo : KIO::DefaultFlags); | 79 | KIO::StatJob *job = KIO::stat(destUrl, destUrl.isLocalFile() ? KIO::HideProgressInfo : KIO::DefaultFlags); | ||
80 | job->setDetails(0); | 80 | job->setDetails(KIO::StatDetail::Basic); | ||
81 | job->setSide(KIO::StatJob::DestinationSide); | 81 | job->setSide(KIO::StatJob::DestinationSide); | ||
82 | KJobWidgets::setWindow(job, widget); | 82 | KJobWidgets::setWindow(job, widget); | ||
83 | 83 | | |||
84 | // Check for existing destination file. | 84 | // Check for existing destination file. | ||
85 | // When we were using CopyJob, we couldn't let it do that (would expose | 85 | // When we were using CopyJob, we couldn't let it do that (would expose | ||
86 | // an ugly tempfile name as the source URL) | 86 | // an ugly tempfile name as the source URL) | ||
87 | // And now we're using a put job anyway, no destination checking included. | 87 | // And now we're using a put job anyway, no destination checking included. | ||
88 | if (job->exec()) { | 88 | if (job->exec()) { | ||
▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines |