mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add scenario conflict resolver
This commit is contained in:
@@ -29,8 +29,13 @@ void HashComparer::CompareDeltas(QList<FileData> *serverStreamingHash, QList<Fil
|
||||
if(!serverStreamingHash->contains(item))
|
||||
{
|
||||
if (item.path.contains("docs.xml")) continue; //фильтр на docs
|
||||
quint32 fileDataIndex = findIndexByPath(*serverStreamingHash, item.path);
|
||||
serverFiles->append(serverStreamingHash->at(fileDataIndex));
|
||||
if (item.path.contains("CfiList.xml")) continue;
|
||||
|
||||
qint32 fileDataIndex = findIndexByPath(*serverStreamingHash, item.path);
|
||||
if (fileDataIndex != -1)
|
||||
{
|
||||
serverFiles->append(serverStreamingHash->at(fileDataIndex));
|
||||
}
|
||||
files->append(item);
|
||||
}
|
||||
}
|
||||
@@ -62,7 +67,14 @@ void HashComparer::showDeltas()
|
||||
for (int i = 0; i < filesForUpdate->size(); i++)
|
||||
{
|
||||
FileData local = filesForUpdate->at(i);
|
||||
FileData server = serverFiles->at(i);
|
||||
FileData server = FileData();
|
||||
server.lastUpdate = "нет";
|
||||
|
||||
if (serverFiles->size() > i)
|
||||
{
|
||||
server = serverFiles->at(i);
|
||||
}
|
||||
|
||||
emit sigAddToList(local,server);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user