mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
line 117: #define _WIN64 1 must be removed in ./compressed_archive/libp7zip/CPP/myWindows/StdAfx.h "cannot find -lpulse" compiling under Qt 5.0.2 can be fixed creating a symbolic link from libpulse.so.0 to libpulse.so (further research is needed)
30 lines
589 B
C++
30 lines
589 B
C++
#include "comics_remover.h"
|
|
|
|
#include <QFile>
|
|
|
|
ComicsRemover::ComicsRemover(QModelIndexList & il, QList<QString> & ps, QObject *parent) :
|
|
QThread(parent),indexList(il), paths(ps)
|
|
{
|
|
}
|
|
|
|
void ComicsRemover::run()
|
|
{
|
|
QString currentComicPath;
|
|
QListIterator<QModelIndex> i(indexList);
|
|
QListIterator<QString> i2(paths);
|
|
i.toBack();
|
|
i2.toBack();
|
|
|
|
while (i.hasPrevious() && i2.hasPrevious())
|
|
{
|
|
QModelIndex mi = i.previous();
|
|
currentComicPath = i2.previous();
|
|
if(QFile::remove(currentComicPath))
|
|
{
|
|
emit remove(mi.row());
|
|
}
|
|
}
|
|
|
|
emit finished();
|
|
}
|