mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: hashComparer
This commit is contained in:
@@ -13,6 +13,7 @@ void HashComparer::CompareDeltas()
|
||||
{
|
||||
QList<FileData> *serverStreamingHash = new QList<FileData>;
|
||||
QList<FileData> *localStreamingHash = new QList<FileData>;
|
||||
QList<FileData> *files = new QList<FileData>;
|
||||
|
||||
QFile file(serverHash);
|
||||
file.open(QIODevice::ReadOnly | QIODevice::Text);
|
||||
@@ -30,14 +31,13 @@ void HashComparer::CompareDeltas()
|
||||
|
||||
for (auto &item:*localStreamingHash)
|
||||
{
|
||||
if(serverStreamingHash->contains(item))
|
||||
if(!serverStreamingHash->contains(item))
|
||||
{
|
||||
serverStreamingHash->removeOne(item);
|
||||
localStreamingHash->removeOne(item);
|
||||
files->append(item);
|
||||
}
|
||||
}
|
||||
|
||||
filesForUpdate = localStreamingHash;
|
||||
filesForUpdate = files;
|
||||
showDeltas();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user