mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
updating folders' children info for every insert/delete in the db causes big performance issues, so that info is going to be updated explicitly
This commit is contained in:
@ -10,12 +10,13 @@ class ComicsRemover : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicsRemover(QModelIndexList & indexList, QList<QString> & paths, QObject *parent = 0);
|
||||
explicit ComicsRemover(QModelIndexList & indexList, QList<QString> & paths, qulonglong parentId, QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
void remove(int);
|
||||
void removeError();
|
||||
void finished();
|
||||
void removedItemsFromFolder(qulonglong);
|
||||
|
||||
public slots:
|
||||
void process();
|
||||
@ -23,6 +24,7 @@ public slots:
|
||||
private:
|
||||
QModelIndexList indexList;
|
||||
QList<QString> paths;
|
||||
qulonglong parentId;
|
||||
};
|
||||
|
||||
class FoldersRemover : public QObject
|
||||
|
Reference in New Issue
Block a user