@@ -1208,12 +1208,11 @@ def activate_cell(self, index: QModelIndex):
12081208 new_data = model .adapter .cell_activated (global_v_pos , global_h_pos )
12091209 if new_data is not None :
12101210 # the adapter wants us to open a sub-element
1211- editor_widget = self .parent ().parent ()
1212- assert isinstance (editor_widget , ArrayEditorWidget )
1211+ array_widget = self .parent ().parent ()
1212+ assert isinstance (array_widget , ArrayEditorWidget )
12131213 adapter_creator = get_adapter_creator (new_data )
12141214 assert adapter_creator is not None
12151215 if isinstance (adapter_creator , str ):
1216- # QMessageBox does not support keyword arguments
12171216 QMessageBox .information (self , "Cannot display object" ,
12181217 adapter_creator )
12191218 return True
@@ -1233,10 +1232,10 @@ def activate_cell(self, index: QModelIndex):
12331232 })
12341233 if not (isinstance (new_data , Path ) and new_data .is_dir ()):
12351234 # TODO: we should add an operand on the future quickbar instead
1236- editor_widget .back_button_bar .add_back (editor_widget .data ,
1237- editor_widget .data_adapter )
1235+ array_widget .back_button_bar .add_back (array_widget .data ,
1236+ array_widget .data_adapter )
12381237 # TODO: we should open a new window instead (see above)
1239- editor_widget .set_data (new_data )
1238+ array_widget .set_data (new_data )
12401239 return True
12411240 return False
12421241
0 commit comments