[vlmc-devel] commit: ImportController: Fixing filesystem sort. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Fri Jun 11 14:02:32 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Jun 10 07:51:04 2010 +0200| [de06b98ed385ddefe809ff625996dd4ab982047c] | committer: Hugo Beauzée-Luyssen
ImportController: Fixing filesystem sort.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=de06b98ed385ddefe809ff625996dd4ab982047c
---
src/Gui/import/ImportController.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/Gui/import/ImportController.cpp b/src/Gui/import/ImportController.cpp
index a72033a..9134f89 100644
--- a/src/Gui/import/ImportController.cpp
+++ b/src/Gui/import/ImportController.cpp
@@ -69,8 +69,8 @@ ImportController::ImportController(QWidget *parent) :
m_filesModel->setNameFilters( m_nameFilters );
m_filesModel->setRootPath( "/" );
m_filesModel->setNameFilterDisables( false );
-
restoreCurrentPath();
+ m_filesModel->sort( 0 );
m_ui->treeView->setModel( m_filesModel );
m_ui->treeView->setHeaderHidden( true );
@@ -81,8 +81,6 @@ ImportController::ImportController(QWidget *parent) :
m_ui->treeView->setColumnHidden( 1, true );
m_ui->treeView->setColumnHidden( 2, true );
m_ui->treeView->setColumnHidden( 3, true );
- for ( int i = 0; i < m_filesModel->columnCount(); ++i )
- m_ui->treeView->sortByColumn( i );
m_ui->forwardButton->setEnabled( true );
More information about the Vlmc-devel
mailing list