slotFolderDiscovered: Fix 'local' always being false

It was unused, so no harm done.
This commit is contained in:
Christian Kamm 2018-02-21 09:33:27 +01:00 committed by Camila San
parent 5e2270bd57
commit 8077748c9d
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4
2 changed files with 2 additions and 3 deletions

View file

@ -40,7 +40,7 @@ csync_vio_handle_t *csync_vio_opendir(CSYNC *ctx, const char *name) {
break;
case LOCAL_REPLICA:
if( ctx->callbacks.update_callback ) {
ctx->callbacks.update_callback(ctx->current, name, ctx->callbacks.update_callback_userdata);
ctx->callbacks.update_callback(/*local=*/true, name, ctx->callbacks.update_callback_userdata);
}
return csync_vio_local_opendir(name);
break;

View file

@ -470,8 +470,7 @@ void DiscoveryMainThread::doOpendirSlot(const QString &subPath, DiscoveryDirecto
fullPath.chop(1);
}
// emit _discoveryJob->folderDiscovered(false, subPath);
_discoveryJob->update_job_update_callback(false, subPath.toUtf8(), _discoveryJob);
_discoveryJob->update_job_update_callback(/*local=*/false, subPath.toUtf8(), _discoveryJob);
// Result gets written in there
_currentDiscoveryDirectoryResult = r;