mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
capture just sortOrder instead of whole object
This commit is contained in:
parent
0ef3aef12d
commit
d987664fea
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ void VisualDeckStorageSortWidget::updateSortOrder()
|
|||
std::function<bool(DeckPreviewWidget *, DeckPreviewWidget *)> VisualDeckStorageSortWidget::getComparator() const
|
||||
{
|
||||
// Sort the widgets list based on the current sort order
|
||||
return [this](DeckPreviewWidget *widget1, DeckPreviewWidget *widget2) {
|
||||
return [sortOrder = sortOrder](const DeckPreviewWidget *widget1, const DeckPreviewWidget *widget2) {
|
||||
if (!widget1 || !widget2) {
|
||||
return false; // Handle null pointers gracefully
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue