mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +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()
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user