@@ -398,7 +398,7 @@ def contextMenuEvent(self, event):
398
398
lookup_action .triggered .connect (partial (self ._open_link , values , tag ))
399
399
menu .addAction (lookup_action )
400
400
if self .tag_is_removable (tag ):
401
- removals .append (partial (self .remove_tag , tag ))
401
+ removals .append (partial (self ._remove_tag , tag ))
402
402
status = self .tag_diff .status [tag ] & TagStatus .CHANGED
403
403
if status == TagStatus .CHANGED or status == TagStatus .REMOVED :
404
404
file_tracks = []
@@ -422,7 +422,7 @@ def contextMenuEvent(self, event):
422
422
useorigs .append (partial (self ._set_tag_values , tag , orig_values , objects ))
423
423
remove_tag_action = QtGui .QAction (_ ("Remove" ), self )
424
424
remove_tag_action .triggered .connect (partial (self ._apply_update_funcs , removals ))
425
- remove_tag_action .setShortcut (self .remove_tag_shortcut .key ())
425
+ remove_tag_action .setShortcut (self ._remove_tag_shortcut .key ())
426
426
remove_tag_action .setEnabled (bool (removals ))
427
427
menu .addAction (remove_tag_action )
428
428
if useorigs :
@@ -485,13 +485,13 @@ def _set_tag_values(self, tag, values, objects=None):
485
485
obj .metadata [tag ] = values
486
486
obj .update ()
487
487
488
- def remove_tag (self , tag ):
488
+ def _remove_tag (self , tag ):
489
489
self ._set_tag_values (tag , [])
490
490
491
491
def remove_selected_tags (self ):
492
492
for tag in self .selected_tags (filter_func = self .tag_is_removable ):
493
493
if self .tag_is_removable (tag ):
494
- self .remove_tag (tag )
494
+ self ._remove_tag (tag )
495
495
self .parent .update_selection (new_selection = False , drop_album_caches = True )
496
496
497
497
def tag_is_removable (self , tag ):
0 commit comments