@@ -235,13 +235,13 @@ def __init__(self, parent):
235
235
self .editing = None # the QTableWidgetItem being edited
236
236
self .clipboard = ["" ]
237
237
self .add_tag_action = QtGui .QAction (_ ("Add New Tag…" ), self )
238
- self .add_tag_action .triggered .connect (partial (self .edit_tag , "" ))
238
+ self .add_tag_action .triggered .connect (partial (self ._edit_tag , "" ))
239
239
self .changes_first_action = QtGui .QAction (_ ("Show Changes First" ), self )
240
240
self .changes_first_action .setCheckable (True )
241
241
self .changes_first_action .setChecked (config .persist ['show_changes_first' ])
242
242
self .changes_first_action .toggled .connect (self .toggle_changes_first )
243
243
# TR: Keyboard shortcut for "Add New Tag…"
244
- self .add_tag_shortcut = QtGui .QShortcut (QtGui .QKeySequence (_ ("Alt+Shift+A" )), self , partial (self .edit_tag , "" ))
244
+ self .add_tag_shortcut = QtGui .QShortcut (QtGui .QKeySequence (_ ("Alt+Shift+A" )), self , partial (self ._edit_tag , "" ))
245
245
self .add_tag_action .setShortcut (self .add_tag_shortcut .key ())
246
246
# TR: Keyboard shortcut for "Edit…" (tag)
247
247
self .edit_tag_shortcut = QtGui .QShortcut (QtGui .QKeySequence (_ ("Alt+Shift+E" )), self , partial (self .edit_selected_tag ))
@@ -292,7 +292,7 @@ def edit(self, index, trigger, event):
292
292
tag = self .tag_diff .tag_names [item .row ()]
293
293
values = self .tag_diff .new [tag ]
294
294
if len (values ) > 1 :
295
- self .edit_tag (tag )
295
+ self ._edit_tag (tag )
296
296
return False
297
297
else :
298
298
self .editing = item
@@ -367,7 +367,7 @@ def contextMenuEvent(self, event):
367
367
selected_tag = tags [0 ]
368
368
editable = self .tag_is_editable (selected_tag )
369
369
edit_tag_action = QtGui .QAction (_ ("Edit…" ), self )
370
- edit_tag_action .triggered .connect (partial (self .edit_tag , selected_tag ))
370
+ edit_tag_action .triggered .connect (partial (self ._edit_tag , selected_tag ))
371
371
edit_tag_action .setShortcut (self .edit_tag_shortcut .key ())
372
372
edit_tag_action .setEnabled (editable )
373
373
menu .addAction (edit_tag_action )
@@ -455,13 +455,13 @@ def _apply_update_funcs(self, funcs):
455
455
f ()
456
456
self .parent .update_selection (new_selection = False , drop_album_caches = True )
457
457
458
- def edit_tag (self , tag ):
458
+ def _edit_tag (self , tag ):
459
459
EditTagDialog (self .parent , tag ).exec ()
460
460
461
461
def edit_selected_tag (self ):
462
462
tags = self .selected_tags (filter_func = self .tag_is_editable )
463
463
if len (tags ) == 1 :
464
- self .edit_tag (tags [0 ])
464
+ self ._edit_tag (tags [0 ])
465
465
466
466
def toggle_changes_first (self , checked ):
467
467
config = get_config ()
0 commit comments