Commit 0fba00d0 authored by Elvis Angelaccio's avatar Elvis Angelaccio

libzip: implement killing TestJob

Depends on fa3865693c, otherwise we would get two messageboxes after
stopping the TestJob from the Plasma systray.
parent 79219339
......@@ -481,6 +481,10 @@ bool LibzipPlugin::testArchive()
const int nofEntries = zip_get_num_entries(archive, 0);
for (int i = 0; i < nofEntries; i++) {
if (QThread::currentThread()->isInterruptionRequested()) {
return false;
// Get statistic for entry. Used to get entry size.
zip_stat_t statBuffer;
if (zip_stat_index(archive, i, 0, &statBuffer) != 0) {
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