@@ -190,9 +190,9 @@ def __init__(
190
190
self .fill_lists (types_include , types_exclude )
191
191
192
192
# Set triggers when the lists receive the current focus
193
- self .list_include .clicked .connect (partial (self .clear_focus , [ self .list_ignore , self .list_exclude ] ))
194
- self .list_exclude .clicked .connect (partial (self .clear_focus , [ self .list_ignore , self .list_include ] ))
195
- self .list_ignore .clicked .connect (partial (self .clear_focus , [ self .list_include , self .list_exclude ] ))
193
+ self .list_include .clicked .connect (partial (self ._on_list_clicked , ( self .list_ignore , self .list_exclude ) ))
194
+ self .list_exclude .clicked .connect (partial (self ._on_list_clicked , ( self .list_ignore , self .list_include ) ))
195
+ self .list_ignore .clicked .connect (partial (self ._on_list_clicked , ( self .list_include , self .list_exclude ) ))
196
196
197
197
# Add instructions to the dialog box
198
198
instructions = QtWidgets .QLabel ()
@@ -325,7 +325,7 @@ def included(self):
325
325
def excluded (self ):
326
326
return list (self .list_exclude .all_items_data ()) or ['none' ]
327
327
328
- def clear_focus (self , lists ):
328
+ def _on_list_clicked (self , lists , index ):
329
329
for temp_list in lists :
330
330
temp_list .clearSelection ()
331
331
self .set_buttons_enabled_state ()
0 commit comments