@@ -362,7 +362,7 @@ def _get_editor_value(editor):
362
362
def contextMenuEvent (self , event ):
363
363
menu = QtWidgets .QMenu (self )
364
364
if self .objects :
365
- tags = self .selected_tags ()
365
+ tags = self ._selected_tags ()
366
366
single_tag = len (tags ) == 1
367
367
if single_tag :
368
368
selected_tag = tags [0 ]
@@ -461,7 +461,7 @@ def _edit_tag(self, tag):
461
461
EditTagDialog (self .parent , tag ).exec ()
462
462
463
463
def _edit_selected_tag (self ):
464
- tags = self .selected_tags (filter_func = self ._tag_is_editable )
464
+ tags = self ._selected_tags (filter_func = self ._tag_is_editable )
465
465
if len (tags ) == 1 :
466
466
self ._edit_tag (tags [0 ])
467
467
@@ -489,7 +489,7 @@ def _remove_tag(self, tag):
489
489
self ._set_tag_values (tag , [])
490
490
491
491
def remove_selected_tags (self ):
492
- for tag in self .selected_tags (filter_func = self ._tag_is_removable ):
492
+ for tag in self ._selected_tags (filter_func = self ._tag_is_removable ):
493
493
self ._remove_tag (tag )
494
494
self .parent .update_selection (new_selection = False , drop_album_caches = True )
495
495
@@ -499,7 +499,7 @@ def _tag_is_removable(self, tag):
499
499
def _tag_is_editable (self , tag ):
500
500
return self .tag_diff .status [tag ] & TagStatus .READONLY == 0
501
501
502
- def selected_tags (self , filter_func = None ):
502
+ def _selected_tags (self , filter_func = None ):
503
503
tags = set (self .tag_diff .tag_names [item .row ()]
504
504
for item in self .selectedItems ())
505
505
if filter_func :
0 commit comments