Clear market browser search control content also if its cancel button is pressed

This commit is contained in:
HomeWorld
2011-05-15 19:55:17 +03:00
parent 3a89b962a3
commit fef545775b

View File

@@ -303,6 +303,11 @@ class ItemView(d.Display):
def clearSearch(self, event=None):
# Wipe item store and update everything to accomodate with it
# If clearSearch was generated by SearchCtrl's Cancel button, clear the content also
if event:
self.marketBrowser.search.Clear()
self.marketBrowser.searchMode = False
self.updateItemStore(set())
self.setToggles()