mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Fixed a bug where at startup, the client attempted to re-download
already deleted files.
This commit is contained in:
parent
8be1e86eec
commit
1a63ad67f0
1 changed files with 10 additions and 6 deletions
|
@ -693,13 +693,17 @@ void OwnCloudSync::syncFiles()
|
|||
query = queryDBFileInfo(serverName,"local_files");
|
||||
}
|
||||
if( !query.next() ) {
|
||||
if( serverType == "collection") {
|
||||
localDirs.append(serverName);
|
||||
} else {
|
||||
mDownloadingFiles.enqueue(FileInfo(serverName,serverSize));
|
||||
mTotalToDownload += serverSize;
|
||||
// If this is the first run, it could also just be a deleted file
|
||||
query = queryDBFileInfo(serverName,"local_files");
|
||||
if(mIsFirstRun && !query.next()) { // Could have just been a deleted file.
|
||||
if( serverType == "collection") {
|
||||
localDirs.append(serverName);
|
||||
} else {
|
||||
mDownloadingFiles.enqueue(FileInfo(serverName,serverSize));
|
||||
mTotalToDownload += serverSize;
|
||||
}
|
||||
syncDebug() << "DOWNLOAD new file: " << serverName;
|
||||
}
|
||||
syncDebug() << "DOWNLOAD new file: " << serverName;
|
||||
}
|
||||
}
|
||||
for( int i = 0; i < mDownloadConflict.size(); i++ ) {
|
||||
|
|
Loading…
Reference in a new issue