diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index 06913e16f4..b9d5ff52b8 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -106,8 +106,6 @@ QString CSyncThread::csyncErrorToString( CSYNC_ERROR_CODE err, const char *errSt break; case CSYNC_ERR_ACCESS_FAILED: errStr = tr("

The target directory does not exist.

Please check the sync setup.

"); - // this is critical. The database has to be removed. - emit wipeDb(); break; case CSYNC_ERR_REMOTE_CREATE: case CSYNC_ERR_REMOTE_STAT: diff --git a/src/mirall/owncloudfolder.cpp b/src/mirall/owncloudfolder.cpp index 839bc4208f..a01572d943 100644 --- a/src/mirall/owncloudfolder.cpp +++ b/src/mirall/owncloudfolder.cpp @@ -69,7 +69,6 @@ ownCloudFolder::ownCloudFolder(const QString &alias, , _csync(0) , _csyncError(false) , _csyncUnavail(false) - , _wipeDb(false) { ServerActionNotifier *notifier = new ServerActionNotifier(this); connect(notifier, SIGNAL(guiLog(QString,QString)), Logger::instance(), SIGNAL(guiLog(QString,QString))); @@ -271,7 +270,6 @@ void ownCloudFolder::startSync(const QStringList &pathList) _errors.clear(); _csyncError = false; _csyncUnavail = false; - _wipeDb = false; MirallConfigFile cfgFile; @@ -333,7 +331,6 @@ void ownCloudFolder::slotCSyncFinished() qDebug() << " ** error Strings: " << _errors; _syncResult.setErrorStrings( _errors ); qDebug() << " * owncloud csync thread finished with error"; - if( _wipeDb ) wipe(); } else if (_csyncUnavail) { _syncResult.setStatus(SyncResult::Unavailable); } else { @@ -427,7 +424,6 @@ void ownCloudFolder::wipe() if( ctmpFile.exists() ) { ctmpFile.remove(); } - _wipeDb = false; } ServerActionNotifier::ServerActionNotifier(QObject *parent)