mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 23:03:43 +02:00
Change when get_gui is imported to avoid test problems
This commit is contained in:
parent
d0b2921dec
commit
eebfced778
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,6 @@
|
|||
from calibre.gui2.complete2 import EditWithComplete
|
||||
from calibre.gui2.dialogs.tag_list_editor_ui import Ui_TagListEditor
|
||||
from calibre.gui2.dialogs.confirm_delete import confirm
|
||||
from calibre.gui2.ui import get_gui
|
||||
from calibre.gui2.widgets import EnLineEdit
|
||||
from calibre.gui2 import question_dialog, error_dialog, gprefs
|
||||
from calibre.utils.config import prefs
|
||||
|
|
@ -308,6 +307,7 @@ def show_context_menu(self, point):
|
|||
m.exec_(self.table.mapToGlobal(point))
|
||||
|
||||
def search_for_books(self, item):
|
||||
from calibre.gui2.ui import get_gui
|
||||
get_gui().search.set_search_string('{0}:"{1}"'.format(self.category,
|
||||
unicode_type(item.text()).replace(r'"', r'\"')))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue