aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-25 16:18:18 +0200
committerJohannes Schickel2011-10-25 16:20:40 +0200
commit19be349a71ed6c5f4ed2b8d23fe2dc4952e0c796 (patch)
tree25888af241495cb4643a68f1e26818ab45b49ed7
parentb2a2f76dd91636181137d9b2599c670a0ba183dd (diff)
downloadscummvm-rg350-19be349a71ed6c5f4ed2b8d23fe2dc4952e0c796.tar.gz
scummvm-rg350-19be349a71ed6c5f4ed2b8d23fe2dc4952e0c796.tar.bz2
scummvm-rg350-19be349a71ed6c5f4ed2b8d23fe2dc4952e0c796.zip
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.
-rw-r--r--gui/launcher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 904f075cba..c737b81b33 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -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();