Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.6KB

  1. diff --git a/src/widgets/dialogs/qfilesystemmodel.cpp b/src/widgets/dialogs/qfilesystemmodel.cpp
  2. index bf88aaa..1df99a8 100644
  3. --- a/src/widgets/dialogs/qfilesystemmodel.cpp
  4. +++ b/src/widgets/dialogs/qfilesystemmodel.cpp
  5. @@ -1109,7 +1109,7 @@ void QFileSystemModelPrivate::sortChildren(int column, const QModelIndex &parent
  6. }
  7. }
  8. QFileSystemModelSorter ms(column);
  9. - std::sort(values.begin(), values.end(), ms);
  10. + qStableSort(values.begin(), values.end(), ms);
  11. // First update the new visible list
  12. indexNode->visibleChildren.clear();
  13. //No more dirty item we reset our internal dirty index
  14. @@ -1660,7 +1660,7 @@ void QFileSystemModelPrivate::_q_directoryChanged(const QString &directory, cons
  15. return;
  16. QStringList toRemove;
  17. QStringList newFiles = files;
  18. - std::sort(newFiles.begin(), newFiles.end());
  19. + qSort(newFiles.begin(), newFiles.end());
  20. for (auto i = parentNode->children.constBegin(), cend = parentNode->children.constEnd(); i != cend; ++i) {
  21. QStringList::iterator iterator = std::lower_bound(newFiles.begin(), newFiles.end(), i.value()->fileName);
  22. if ((iterator == newFiles.end()) || (i.value()->fileName < *iterator))
  23. @@ -1840,7 +1840,7 @@ void QFileSystemModelPrivate::_q_fileSystemChanged(const QString &path, const QV
  24. }
  25. // bundle up all of the changed signals into as few as possible.
  26. - std::sort(rowsToUpdate.begin(), rowsToUpdate.end());
  27. + qSort(rowsToUpdate.begin(), rowsToUpdate.end());
  28. QString min;
  29. QString max;
  30. for (int i = 0; i < rowsToUpdate.count(); ++i) {