mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Disable some code that needs lambda with old GCC
It's just a feature that was not there in 2.0 It means that removed folder stay on the undecided list if it is removed from the server until the user press apply in the selective sync widget. Not a very bad bug anyway.
This commit is contained in:
parent
559bf75189
commit
76d1296053
1 changed files with 5 additions and 0 deletions
|
@ -625,6 +625,10 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
|
|||
suggestExpand(idx.child(*it, 0));
|
||||
}
|
||||
|
||||
/* We need lambda function for the following code.
|
||||
* It's just a small feature that will be missing if the comiler is too old */
|
||||
#if !(defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && !defined(Q_CC_CLANG)) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 405)
|
||||
|
||||
/* Try to remove the the undecided lists the items that are not on the server. */
|
||||
auto it = std::remove_if(selectiveSyncUndecidedList.begin(), selectiveSyncUndecidedList.end(),
|
||||
[&](const QString &s) { return selectiveSyncUndecidedSet.count(s); } );
|
||||
|
@ -634,6 +638,7 @@ void FolderStatusModel::slotUpdateDirectories(const QStringList &list)
|
|||
SyncJournalDb::SelectiveSyncUndecidedList, selectiveSyncUndecidedList);
|
||||
emit dirtyChanged();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void FolderStatusModel::slotLscolFinishedWithError(QNetworkReply* r)
|
||||
|
|
Loading…
Reference in a new issue