Update MyLocations sort order

This commit is contained in:
Ryan Huffman 2014-06-30 22:37:32 -07:00
parent a566f90820
commit bfde24fe12

View file

@ -29,6 +29,7 @@ UserLocationsWindow::UserLocationsWindow(QWidget* parent) :
_ui.locationsTreeView->setModel(&_proxyModel);
_ui.locationsTreeView->setSortingEnabled(true);
_ui.locationsTreeView->sortByColumn(UserLocationsModel::NameColumn, Qt::AscendingOrder);
connect(_ui.locationsTreeView->selectionModel(), &QItemSelectionModel::selectionChanged,
this, &UserLocationsWindow::updateEnabled);