summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/browsedirtree.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-08-15 14:37:18 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-08-15 14:37:18 +0000
commit1899315834a07511b81f9cfb6101f9804f6eb351 (patch)
treec036a637f1243d1808f66a6706d5efb27c277c90 /rbutil/rbutilqt/browsedirtree.cpp
parent9789d303f234d259bb9c3de96dc6ca7c6ebde183 (diff)
downloadrockbox-1899315834a07511b81f9cfb6101f9804f6eb351.tar.gz
rockbox-1899315834a07511b81f9cfb6101f9804f6eb351.tar.bz2
rockbox-1899315834a07511b81f9cfb6101f9804f6eb351.zip
rbutilQt: set the correct sorting method for the browsedirtree dialog.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14358 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/browsedirtree.cpp')
-rw-r--r--rbutil/rbutilqt/browsedirtree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/browsedirtree.cpp b/rbutil/rbutilqt/browsedirtree.cpp
index f46a825935..ac9a501dc1 100644
--- a/rbutil/rbutilqt/browsedirtree.cpp
+++ b/rbutil/rbutilqt/browsedirtree.cpp
@@ -29,6 +29,8 @@ BrowseDirtree::BrowseDirtree(QWidget *parent) : QDialog(parent)
this->setModal(true);
ui.tree->setModel(&model);
model.setReadOnly(true);
+ model.setSorting(QDir::Name | QDir::DirsFirst | QDir::IgnoreCase);
+
// disable size / date / type columns
ui.tree->setColumnHidden(1, true);
ui.tree->setColumnHidden(2, true);