mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
fix tab spacing
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
eff75a2059
commit
9618500975
2 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ QString SyncJournalDb::makeDbName(const QUrl &remoteUrl,
|
|||
journalPath.append(ba.left(6).toHex());
|
||||
journalPath.append(".db");
|
||||
|
||||
journalPath = dbPath + QLatin1Char('/') + journalPath;
|
||||
journalPath = dbPath + QLatin1Char('/') + journalPath;
|
||||
|
||||
// If the journal doesn't exist and we can't create a file
|
||||
// at that location, try again with a journal name that doesn't
|
||||
|
|
|
@ -210,13 +210,13 @@ void FolderMan::setupFoldersHelper(QSettings &settings, AccountStatePtr account,
|
|||
folderDefinition.journalPath = defaultJournalPath;
|
||||
}
|
||||
|
||||
// Migration #2: journalPath now in DataAppDir, not root of local tree (cross-platform persistent user roaming files)
|
||||
// Migration #2: journalPath now in DataAppDir, not root of local tree (cross-platform persistent user roaming files)
|
||||
if (folderDefinition.journalPath.at(0) == QChar('.')) {
|
||||
QFile oldJournal(folderDefinition.localPath + "/" + folderDefinition.journalPath);
|
||||
QFile oldJournalShm(folderDefinition.localPath + "/" + folderDefinition.journalPath.append("-shm"));
|
||||
QFile oldJournalWal(folderDefinition.localPath + "/" + folderDefinition.journalPath.append("-wal"));
|
||||
|
||||
folderDefinition.journalPath = defaultJournalPath;
|
||||
folderDefinition.journalPath = defaultJournalPath;
|
||||
|
||||
socketApi()->slotUnregisterPath(folderAlias);
|
||||
auto settings = account->settings();
|
||||
|
@ -224,7 +224,7 @@ void FolderMan::setupFoldersHelper(QSettings &settings, AccountStatePtr account,
|
|||
Folder *f = addFolderInternal(folderDefinition, account.data());
|
||||
f->saveToSettings();
|
||||
|
||||
oldJournal.remove();
|
||||
oldJournal.remove();
|
||||
oldJournalShm.remove();
|
||||
oldJournalWal.remove();
|
||||
|
||||
|
|
Loading…
Reference in a new issue