mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 19:31:07 +00:00
Fix sorting for texture viewer texture list
This commit is contained in:
@@ -647,8 +647,7 @@ TextureViewer::TextureViewer(ICaptureContext &ctx, QWidget *parent)
|
||||
header->setColumnStretchHints({1, -1, -1, -1, -1, -1, -1});
|
||||
}
|
||||
|
||||
ui->textureList->header()->sortIndicatorChanged(TextureListFilter::Column_TexName,
|
||||
Qt::SortOrder::DescendingOrder);
|
||||
ui->textureList->sortByColumn(TextureListFilter::Column_TexName, Qt::SortOrder::AscendingOrder);
|
||||
|
||||
ui->zoomOption->setCurrentText(QString());
|
||||
ui->fitToWindow->toggle();
|
||||
@@ -3068,6 +3067,9 @@ void TextureViewer::refreshTextureList(FilterType filterType, const QString &fil
|
||||
|
||||
ui->textureList->setSelectedItem(root);
|
||||
|
||||
ui->textureList->sortByColumn(ui->textureList->header()->sortIndicatorSection(),
|
||||
ui->textureList->header()->sortIndicatorOrder());
|
||||
|
||||
ui->textureList->setUpdatesEnabled(true);
|
||||
|
||||
ui->textureList->endUpdate();
|
||||
|
||||
Reference in New Issue
Block a user