NOISSUE sort export dialog contents in ascending order by default

This commit is contained in:
Petr Mrázek 2017-12-21 01:25:43 +01:00
parent c2726037ce
commit 642c3f1d09

View File

@ -321,6 +321,7 @@ ExportInstanceDialog::ExportInstanceDialog(InstancePtr instance, QWidget *parent
auto root = instance->instanceRoot();
ui->treeView->setModel(proxyModel);
ui->treeView->setRootIndex(proxyModel->mapFromSource(model->index(root)));
ui->treeView->sortByColumn(0, Qt::AscendingOrder);
connect(proxyModel, SIGNAL(rowsInserted(QModelIndex,int,int)), SLOT(rowsInserted(QModelIndex,int,int)));