GUI: Fix search clear button when switching themes or resolution.

This only fixes the clear button of the launcher's search. For the other clear
buttons this is would be a bit more work since they are embedded in tabs.
This commit is contained in:
Johannes Schickel 2011-10-25 16:18:18 +02:00
parent b2a2f76dd9
commit 19be349a71

View File

@ -1131,6 +1131,11 @@ void LauncherDialog::reflowLayout() {
_searchPic = 0;
}
}
removeWidget(_searchClearButton);
_searchClearButton->setNext(0);
delete _searchClearButton;
_searchClearButton = addClearButton(this, "Launcher.SearchClearButton", kSearchClearCmd);
#endif
_w = g_system->getOverlayWidth();