Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2014-10-24 16:43:48 +0400
committerKlaas Freitag <freitag@owncloud.com>2014-10-24 16:43:48 +0400
commitc12d3870cd792d2d82857e15f8f482d0a1f0a38d (patch)
tree2e0b52f40b07625ea19727123769133b78f09f0f /src
parentfce76a13cb20c9ad0179a7317e253f7bf545801a (diff)
parenta9d8e9dcd8505ae0d6464b6352417141188033cb (diff)
Merging work branch for a bug fix for bug #2379.
It closes all db connections if the new local path is a already synced folder path.
Diffstat (limited to 'src')
-rw-r--r--src/mirall/owncloudsetupwizard.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mirall/owncloudsetupwizard.cpp b/src/mirall/owncloudsetupwizard.cpp
index 84f4fa6da..3dcfd8d98 100644
--- a/src/mirall/owncloudsetupwizard.cpp
+++ b/src/mirall/owncloudsetupwizard.cpp
@@ -401,7 +401,6 @@ void OwncloudSetupWizard::slotAssistantFinished( int result )
_ocWizard->account()->deleteLater();
qDebug() << "Rejected the new config, use the old!";
} else if( result == QDialog::Accepted ) {
-
Account *newAccount = _ocWizard->account();
Account *origAccount = AccountManager::instance()->account();
@@ -410,6 +409,13 @@ void OwncloudSetupWizard::slotAssistantFinished( int result )
localFolder.append(QLatin1Char('/'));
}
+ Folder *f = folderMan->folderForPath(localFolder);
+ if( f ) {
+ folderMan->setSyncEnabled(false);
+ folderMan->terminateSyncProcess(f->alias());
+ f->journalDb()->close();
+ }
+
bool isInitialSetup = (origAccount == 0);
// check if either the account or the local folder changed, than reinit