Reset Saved Search combo tooltip when cleared.

This commit is contained in:
Jim Miller 2016-05-09 09:10:24 -05:00
parent 0a924f2e66
commit b3f7d03017

View File

@ -334,6 +334,7 @@ class SavedSearchBox(QComboBox): # {{{
QComboBox.clear(self) QComboBox.clear(self)
self.initialize_saved_search_names() self.initialize_saved_search_names()
self.setEditText('') self.setEditText('')
self.setToolTip(self.tool_tip_text)
self.line_edit.home(False) self.line_edit.home(False)
def key_pressed(self, event): def key_pressed(self, event):
@ -525,9 +526,9 @@ class SavedSearchBoxMixin(object): # {{{
# self.saved_searches_changed() # self.saved_searches_changed()
self.saved_search.initialize(self.search, colorize=True, self.saved_search.initialize(self.search, colorize=True,
help_text=_('Saved Searches')) help_text=_('Saved Searches'))
self.saved_search.setToolTip( self.saved_search.tool_tip_text=_('Choose saved search or enter name for new saved search')
_('Choose saved search or enter name for new saved search')) self.saved_search.setToolTip(self.saved_search.tool_tip_text)
self.saved_search.setStatusTip(self.saved_search.toolTip()) self.saved_search.setStatusTip(self.saved_search.tool_tip_text)
for x in ('copy', 'save'): for x in ('copy', 'save'):
b = getattr(self, x+'_search_button') b = getattr(self, x+'_search_button')
b.setStatusTip(b.toolTip()) b.setStatusTip(b.toolTip())