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