Commit de06b98e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ImportController: Fixing filesystem sort.

parent ff6e179a
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment