mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
Fix sorting in the volume selection dialog
This commit is contained in:
parent
756c514712
commit
ceb230a21c
@ -18,6 +18,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch)
|
||||
* New `Recent` smart list, it will show recent comics added.
|
||||
* Try to detect changed files with the same name on libraries updates, there is also a new setting to decide if the modified date of a file should be used as an indicator to know if the file has been changed since it was added (disabled by default).
|
||||
* Fix alphanumeric navigation in the folders tree view. Shortcuts were interfering the default behaviour, now some shortcuts will be ignored if the folders tree has the focus.
|
||||
* Fix sorting in the Comic Vine series selection dialog.
|
||||
|
||||
### All Apps
|
||||
* New icons for macos.
|
||||
|
@ -58,11 +58,7 @@ SelectVolume::SelectVolume(QWidget *parent)
|
||||
filterEdit->setClearButtonEnabled(true);
|
||||
|
||||
connect(filterEdit, &QLineEdit::textChanged, proxyModel, &QSortFilterProxyModel::setFilterFixedString);
|
||||
|
||||
connect(tableVolumes->horizontalHeader(), &QHeaderView::sectionClicked, this,
|
||||
[=](int index) { tableVolumes->horizontalHeader()->sortIndicatorSection() == index ? tableVolumes->sortByColumn(index, tableVolumes->horizontalHeader()->sortIndicatorOrder() == Qt::AscendingOrder ? Qt::DescendingOrder : Qt::AscendingOrder)
|
||||
: tableVolumes->sortByColumn(index, Qt::AscendingOrder); });
|
||||
// connections
|
||||
connect(tableVolumes->horizontalHeader(), &QHeaderView::sortIndicatorChanged, tableVolumes, &QTableView::sortByColumn);
|
||||
connect(tableVolumes, &QAbstractItemView::clicked, this, &SelectVolume::loadVolumeInfo);
|
||||
|
||||
paginator->setCustomLabel(tr("volumes"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user