mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Removed live and commented print statements
This commit is contained in:
parent
e61e40bdf0
commit
7f965d8506
@ -114,7 +114,6 @@ class TagCategories(QDialog, Ui_TagCategories):
|
||||
'<b>permanently deleted</b>. Are you sure?')
|
||||
+'</p>', 'tag_category_delete', self):
|
||||
return
|
||||
print 'here', self.current_category
|
||||
if self.current_cat_name is not None:
|
||||
if self.current_cat_name == unicode(self.category_box.currentText()):
|
||||
del self.categories[self.current_cat_label][self.current_cat_name]
|
||||
|
@ -227,7 +227,6 @@ class SavedSearchBox(QComboBox):
|
||||
self.clear_to_help()
|
||||
|
||||
def normalize_state(self):
|
||||
#print 'in normalize_state'
|
||||
self.setEditText('')
|
||||
self.line_edit.setStyleSheet(
|
||||
'QLineEdit { color: black; background-color: %s; }' %
|
||||
@ -235,7 +234,6 @@ class SavedSearchBox(QComboBox):
|
||||
self.help_state = False
|
||||
|
||||
def clear_to_help(self):
|
||||
#print 'in clear_to_help'
|
||||
self.setToolTip(self.tool_tip_text)
|
||||
self.initialize_saved_search_names()
|
||||
self.setEditText(self.help_text)
|
||||
@ -246,12 +244,10 @@ class SavedSearchBox(QComboBox):
|
||||
self.normal_background)
|
||||
|
||||
def focus_out(self, event):
|
||||
#print 'in focus_out'
|
||||
if self.currentText() == '':
|
||||
self.clear_to_help()
|
||||
|
||||
def key_pressed(self, event):
|
||||
#print 'in key_pressed'
|
||||
if self.help_state:
|
||||
self.normalize_state()
|
||||
|
||||
@ -260,7 +256,6 @@ class SavedSearchBox(QComboBox):
|
||||
self.normalize_state()
|
||||
|
||||
def saved_search_selected (self, qname):
|
||||
#print 'in saved_search_selected'
|
||||
qname = unicode(qname)
|
||||
if qname is None or not qname.strip():
|
||||
return
|
||||
@ -270,7 +265,6 @@ class SavedSearchBox(QComboBox):
|
||||
self.setToolTip(self.saved_searches.lookup(qname))
|
||||
|
||||
def initialize_saved_search_names(self):
|
||||
#print 'in initialize_saved_search_names'
|
||||
self.clear()
|
||||
qnames = self.saved_searches.names()
|
||||
self.addItems(qnames)
|
||||
@ -278,7 +272,6 @@ class SavedSearchBox(QComboBox):
|
||||
|
||||
# SIGNALed from the main UI
|
||||
def delete_search_button_clicked(self):
|
||||
#print 'in delete_search_button_clicked'
|
||||
if not confirm('<p>'+_('The selected search will be '
|
||||
'<b>permanently deleted</b>. Are you sure?')
|
||||
+'</p>', 'saved_search_delete', self):
|
||||
@ -293,7 +286,6 @@ class SavedSearchBox(QComboBox):
|
||||
|
||||
# SIGNALed from the main UI
|
||||
def save_search_button_clicked(self):
|
||||
#print 'in save_search_button_clicked'
|
||||
name = unicode(self.currentText())
|
||||
if self.help_state or not name.strip():
|
||||
name = unicode(self.search_box.text()).replace('"', '')
|
||||
@ -310,10 +302,7 @@ class SavedSearchBox(QComboBox):
|
||||
|
||||
# SIGNALed from the main UI
|
||||
def copy_search_button_clicked (self):
|
||||
#print 'in copy_search_button_clicked'
|
||||
idx = self.currentIndex();
|
||||
if idx < 0:
|
||||
return
|
||||
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
||||
|
||||
|
||||
self.search_box.set_search_string(self.saved_searches.lookup(unicode(self.currentText())))
|
@ -212,7 +212,6 @@ class SearchQueryParser(object):
|
||||
location = argument[0]
|
||||
query = argument[1]
|
||||
if location.lower() == 'search':
|
||||
# print "looking for named search " + query
|
||||
if query.startswith('='):
|
||||
query = query[1:]
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user