Skip to content

Commit

Permalink
Fix crash on settings migration
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed May 29, 2020
1 parent f55d2ea commit 12f9945
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog/unreleased/7878
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Crash on migration of old settings

We fixed a crash when a user settings are migrated
to a new client version.

https://github.com/owncloud/client/issues/7878
2 changes: 1 addition & 1 deletion src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Folder *FolderMan::setupFolderFromOldConfigFile(const QString &file, AccountStat
folderDefinition.paused = paused;
folderDefinition.ignoreHiddenFiles = ignoreHiddenFiles();

folder = addFolderInternal(folderDefinition, accountState, std::unique_ptr<Vfs>());
folder = addFolderInternal(folderDefinition, accountState, std::make_unique<Vfs>());
if (folder) {
QStringList blackList = settings.value(QLatin1String("blackList")).toStringList();
if (!blackList.empty()) {
Expand Down

0 comments on commit 12f9945

Please sign in to comment.