Changeset View
Changeset View
Standalone View
Standalone View
plugins/libarchive/readwritelibarchiveplugin.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 54 | { | |||
---|---|---|---|---|---|
70 | // First write the new files. | 70 | // First write the new files. | ||
71 | qCDebug(ARK) << "Writing new entries"; | 71 | qCDebug(ARK) << "Writing new entries"; | ||
72 | uint addedEntries = 0; | 72 | uint addedEntries = 0; | ||
73 | // Recreate destination directory structure. | 73 | // Recreate destination directory structure. | ||
74 | const QString destinationPath = (destination == nullptr) | 74 | const QString destinationPath = (destination == nullptr) | ||
75 | ? QString() | 75 | ? QString() | ||
76 | : destination->fullPath(); | 76 | : destination->fullPath(); | ||
77 | 77 | | |||
78 | foreach(Archive::Entry *selectedFile, files) { | 78 | for (Archive::Entry *selectedFile : files) { | ||
79 | if (QThread::currentThread()->isInterruptionRequested()) { | 79 | if (QThread::currentThread()->isInterruptionRequested()) { | ||
80 | break; | 80 | break; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | if (!writeFile(selectedFile->fullPath(), destinationPath)) { | 83 | if (!writeFile(selectedFile->fullPath(), destinationPath)) { | ||
84 | finish(false); | 84 | finish(false); | ||
85 | return false; | 85 | return false; | ||
86 | } | 86 | } | ||
▲ Show 20 Lines • Show All 461 Lines • Show Last 20 Lines |