mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix behavior of delete saved search button
This commit is contained in:
parent
7db6e9ffb5
commit
f2b0e68985
@ -297,9 +297,11 @@ class SavedSearchBox(QComboBox):
|
|||||||
if idx < 0:
|
if idx < 0:
|
||||||
return
|
return
|
||||||
ss = self.saved_searches.lookup(unicode(self.currentText()))
|
ss = self.saved_searches.lookup(unicode(self.currentText()))
|
||||||
|
if ss is None:
|
||||||
|
return
|
||||||
self.saved_searches.delete(unicode(self.currentText()))
|
self.saved_searches.delete(unicode(self.currentText()))
|
||||||
self.clear_to_help()
|
self.clear_to_help()
|
||||||
self.search_box.set_search_string(ss)
|
self.search_box.clear_to_help()
|
||||||
self.emit(SIGNAL('changed()'))
|
self.emit(SIGNAL('changed()'))
|
||||||
|
|
||||||
# SIGNALed from the main UI
|
# SIGNALed from the main UI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user