mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 15:32:15 -07:00
better comments
This commit is contained in:
parent
4a0dcb0b8b
commit
934d36b773
1 changed files with 3 additions and 1 deletions
|
|
@ -212,7 +212,9 @@ void VisualDeckStorageWidget::createRootFolderWidget()
|
||||||
scrollArea->widget()->setMaximumWidth(scrollArea->viewport()->width());
|
scrollArea->widget()->setMaximumWidth(scrollArea->viewport()->width());
|
||||||
scrollArea->widget()->adjustSize();
|
scrollArea->widget()->adjustSize();
|
||||||
|
|
||||||
// Deck sort intermittently segfaults due to invalid DeckPreviewWidget, unless we use QTimer trick
|
/* We have to schedule a QTimer here so that the sorting logic doesn't try to access widgets that haven't been
|
||||||
|
* processed by the event loop yet. Otherwise, deck sorting will intermittently segfault on some systems.
|
||||||
|
*/
|
||||||
QTimer::singleShot(0, this, &VisualDeckStorageWidget::reapplySortAndFilters);
|
QTimer::singleShot(0, this, &VisualDeckStorageWidget::reapplySortAndFilters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue