Fix search crash
This commit is contained in:
parent
36a952ca4d
commit
d364a27ed6
@ -82,8 +82,10 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
|
|||||||
for(i = 0; i < saveButtons.size(); i++)
|
for(i = 0; i < saveButtons.size(); i++)
|
||||||
{
|
{
|
||||||
RemoveComponent(saveButtons[i]);
|
RemoveComponent(saveButtons[i]);
|
||||||
|
|
||||||
delete saveButtons[i];
|
delete saveButtons[i];
|
||||||
}
|
}
|
||||||
|
saveButtons.clear();
|
||||||
for(i = 0; i < saves.size(); i++)
|
for(i = 0; i < saves.size(); i++)
|
||||||
{
|
{
|
||||||
if(saveX == savesX)
|
if(saveX == savesX)
|
||||||
|
Loading…
Reference in New Issue
Block a user