mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Qt: fix flow_layout segfault
This commit is contained in:
parent
9d4ff13c2b
commit
79fc366f23
@ -79,7 +79,8 @@ flow_layout::~flow_layout()
|
|||||||
|
|
||||||
void flow_layout::clear()
|
void flow_layout::clear()
|
||||||
{
|
{
|
||||||
for (QLayoutItem* item : m_item_list)
|
// We can't use a ranged loop here, since deleting the widget will call takeAt on the layout. So let's also use takeAt.
|
||||||
|
while (QLayoutItem* item = takeAt(0))
|
||||||
{
|
{
|
||||||
if (item)
|
if (item)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user