mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
Qt: fix flow_layout segfault
This commit is contained in:
parent
9d4ff13c2b
commit
79fc366f23
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue