Changeset View
Changeset View
Standalone View
Standalone View
src/core/copyjob.cpp
Show First 20 Lines • Show All 1214 Lines • ▼ Show 20 Line(s) | 1170 | { | |||
---|---|---|---|---|---|
1215 | } | 1215 | } | ||
1216 | switch (r) { | 1216 | switch (r) { | ||
1217 | case Result_Cancel: | 1217 | case Result_Cancel: | ||
1218 | q->setError(ERR_USER_CANCELED); | 1218 | q->setError(ERR_USER_CANCELED); | ||
1219 | q->emitResult(); | 1219 | q->emitResult(); | ||
1220 | return; | 1220 | return; | ||
1221 | case Result_AutoRename: | 1221 | case Result_AutoRename: | ||
1222 | m_bAutoRenameDirs = true; | 1222 | m_bAutoRenameDirs = true; | ||
1223 | // fall through | 1223 | // fall through | ||
1224 | Q_FALLTHROUGH(); | ||||
davidedmundson: The comments are somewhat redundant now
x2 | |||||
1224 | case Result_Rename: { | 1225 | case Result_Rename: { | ||
1225 | QUrl newUrl((*it).uDest); | 1226 | QUrl newUrl((*it).uDest); | ||
1226 | newUrl.setPath(newPath, QUrl::DecodedMode); | 1227 | newUrl.setPath(newPath, QUrl::DecodedMode); | ||
1227 | 1228 | | |||
1228 | renameDirectory(it, newUrl); | 1229 | renameDirectory(it, newUrl); | ||
1229 | } | 1230 | } | ||
1230 | break; | 1231 | break; | ||
1231 | case Result_AutoSkip: | 1232 | case Result_AutoSkip: | ||
1232 | m_bAutoSkipDirs = true; | 1233 | m_bAutoSkipDirs = true; | ||
1233 | // fall through | 1234 | // fall through | ||
1235 | Q_FALLTHROUGH(); | ||||
1234 | case Result_Skip: | 1236 | case Result_Skip: | ||
1235 | m_skipList.append(existingDest); | 1237 | m_skipList.append(existingDest); | ||
1236 | skip((*it).uSource, true); | 1238 | skip((*it).uSource, true); | ||
1237 | // Move on to next dir | 1239 | // Move on to next dir | ||
1238 | dirs.erase(it); | 1240 | dirs.erase(it); | ||
1239 | m_processedDirs++; | 1241 | m_processedDirs++; | ||
1240 | break; | 1242 | break; | ||
1241 | case Result_Overwrite: | 1243 | case Result_Overwrite: | ||
▲ Show 20 Lines • Show All 1090 Lines • Show Last 20 Lines |
The comments are somewhat redundant now
x2