mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
- Add csync push atomar switch
- Fix a wording if the directory does not exist.
This commit is contained in:
parent
7e30319040
commit
6ad89d98a9
1 changed files with 6 additions and 1 deletions
|
@ -195,7 +195,7 @@ void CSyncThread::run()
|
|||
errStr = tr("CSync got an error while processing internal trees.");
|
||||
break;
|
||||
case CSYNC_ERR_ACCESS_FAILED:
|
||||
errStr = tr("<p>The target directory %1 does not exist.</p><p>Please create it and try again.</p>").arg(_target);
|
||||
errStr = tr("<p>The target directory %1 does not exist.</p><p>Please check the sync setup.</p>").arg(_target);
|
||||
break;
|
||||
case CSYNC_ERR_MODULE:
|
||||
errStr = tr("<p>The ownCloud plugin for csync could not be loaded.<br/>Please verify the installation!</p>");
|
||||
|
@ -216,6 +216,11 @@ void CSyncThread::run()
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
// tell csync that the remote repository (ownCloud) does atomar push
|
||||
if( csync_set_remote_push_atomar( csync, true ) < 0 ) {
|
||||
qDebug() << "WRN: Failed to set remote push atomar.";
|
||||
}
|
||||
|
||||
// After csync_init the statedb file name can be emitted
|
||||
statedb = csync_get_statedb_file( csync );
|
||||
if( statedb ) {
|
||||
|
|
Loading…
Reference in a new issue