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