[Pkg-owncloud-commits] [owncloud-client] 418/470: FolderWizard: Sort remote folders #4612

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit a36b4ec8639a7f13f599116aa8885507954f2fdc
Author: Christian Kamm <mail at ckamm.de>
Date:   Thu Apr 28 09:21:42 2016 +0200

    FolderWizard: Sort remote folders #4612
---
 src/gui/folderwizard.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp
index 3e10c48..60e3fe5 100644
--- a/src/gui/folderwizard.cpp
+++ b/src/gui/folderwizard.cpp
@@ -322,7 +322,9 @@ void FolderWizardRemotePath::slotUpdateDirectories(const QStringList &list)
         root->setToolTip(0, tr("Choose this to sync the entire account"));
         root->setData(0, Qt::UserRole, "/");
     }
-    foreach (QString path, list) {
+    QStringList sortedList = list;
+    sortedList.sort();
+    foreach (QString path, sortedList) {
         path.remove(webdavFolder);
         QStringList paths = path.split('/');
         if (paths.last().isEmpty()) paths.removeLast();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list