Changeset View
Changeset View
Standalone View
Standalone View
src/core/copyjob.cpp
Show First 20 Lines • Show All 2136 Lines • ▼ Show 20 Line(s) | 1967 | if (err) { | |||
---|---|---|---|---|---|
2137 | qCDebug(KIO_COPYJOB_DEBUG) << "KIO::stat on" << m_currentSrcURL; | 2137 | qCDebug(KIO_COPYJOB_DEBUG) << "KIO::stat on" << m_currentSrcURL; | ||
2138 | KIO::Job *job = KIO::stat(m_currentSrcURL, StatJob::SourceSide, 2, KIO::HideProgressInfo); | 2138 | KIO::Job *job = KIO::stat(m_currentSrcURL, StatJob::SourceSide, 2, KIO::HideProgressInfo); | ||
2139 | state = STATE_STATING; | 2139 | state = STATE_STATING; | ||
2140 | q->addSubjob(job); | 2140 | q->addSubjob(job); | ||
2141 | m_bOnlyRenames = false; | 2141 | m_bOnlyRenames = false; | ||
2142 | } else { | 2142 | } else { | ||
2143 | qCDebug(KIO_COPYJOB_DEBUG) << "Renaming succeeded, move on"; | 2143 | qCDebug(KIO_COPYJOB_DEBUG) << "Renaming succeeded, move on"; | ||
2144 | ++m_processedFiles; | 2144 | ++m_processedFiles; | ||
2145 | emit q->copyingDone(q, *m_currentStatSrc, finalDestUrl(*m_currentStatSrc, dest), QDateTime() /*mtime unknown, and not needed*/, true, true); | 2145 | // Emit copyingDone for FileUndoManager to remember what we did. | ||
2146 | // Use resolved URL m_currentSrcURL since that's what we just used for renaming. See bug 391606 and kio_desktop's testTrashAndUndo(). | ||||
2147 | emit q->copyingDone(q, m_currentSrcURL, finalDestUrl(m_currentSrcURL, dest), QDateTime() /*mtime unknown, and not needed*/, m_bCurrentSrcIsDir, true); | ||||
2146 | m_successSrcList.append(*m_currentStatSrc); | 2148 | m_successSrcList.append(*m_currentStatSrc); | ||
2147 | statNextSrc(); | 2149 | statNextSrc(); | ||
2148 | } | 2150 | } | ||
2149 | } | 2151 | } | ||
2150 | 2152 | | |||
2151 | void CopyJob::slotResult(KJob *job) | 2153 | void CopyJob::slotResult(KJob *job) | ||
2152 | { | 2154 | { | ||
2153 | Q_D(CopyJob); | 2155 | Q_D(CopyJob); | ||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |