Browse Source

Fix a crash when syncing

Jocelyn Turcotte 10 years ago
parent
commit
49f00499f7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/gui/folder.cpp

+ 1 - 3
src/gui/folder.cpp

@@ -831,11 +831,9 @@ void Folder::startSync(const QStringList &pathList)
     qDebug() << "*** Start syncing " << remoteUrl().toString() << " - client version"
              << qPrintable(Theme::instance()->version());
 
+    _engine.reset(new SyncEngine( _accountState->account(), path(), remoteUrl(), remotePath(), &_journal));
     // pass the setting if hidden files are to be ignored, will be read in csync_update
     _engine->setIgnoreHiddenFiles(_definition.ignoreHiddenFiles);
-    // _csync_ctx->ignore_hidden_files = _definition.ignoreHiddenFiles;
-
-    _engine.reset(new SyncEngine( _accountState->account(), path(), remoteUrl(), remotePath(), &_journal));
 
     if (!setIgnoredFiles())
     {