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