Fix all the things that removing refinement from the search box signal broke

This commit is contained in:
Kovid Goyal 2010-06-06 22:23:45 -06:00
parent 744032dd21
commit 5b83d32a3e
3 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class Main(MainWindow, Ui_MainWindow):
self.stack.setCurrentIndex(1)
self.renderer.start()
def find(self, search, refinement):
def find(self, search):
self.last_search = search
try:
self.document.search(search)

View File

@ -424,7 +424,7 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
self.set_bookmarks(self.iterator.bookmarks)
def find(self, text, refinement, repeat=False, backwards=False):
def find(self, text, repeat=False, backwards=False):
if not text:
self.view.search('')
return self.search.search_done(False)

View File

@ -241,7 +241,7 @@ class RecipeModel(QAbstractItemModel, SearchQueryParser):
results.add(urn)
return results
def search(self, query, refinement):
def search(self, query):
try:
results = self.parse(unicode(query))
if not results: