def _add_single_stage_btn_clicked(self):
    file_dialog = QFileDialog()
    obj_filepath = QFileDialog.getOpenFileName(file_dialog, 'import stage .obj file', get_mbreplacer_dir(), '*.obj')[0]
    if (obj_filepath in self._imported_obj_filepaths):
        duplicate_idx = self._imported_obj_filepaths.index(obj_filepath)
        duplicate_item = self._imported_stages_list.item(duplicate_idx)
        self._imported_stages_list.takeItem(self._imported_stages_list.row(duplicate_item))
        del self._imported_obj_filepaths[duplicate_idx]
    if obj_filepath:
        self._add_single_stage(obj_filepath)
        self._imported_obj_filepaths.append(obj_filepath)
        self._imported_stages_list.sortItems()
    return Status.OK
def _add_single_stage_btn_clicked(self):
    file_dialog = QFileDialog()
    obj_filepath = QFileDialog.getOpenFileName(file_dialog, 'import stage .obj file', get_mbreplacer_dir(), '*.obj')[0]
    if (obj_filepath in self._imported_obj_filepaths):
        duplicate_idx = self._imported_obj_filepaths.index(obj_filepath)
        duplicate_item = self._imported_stages_list.item(duplicate_idx)
        self._imported_stages_list.takeItem(self._imported_stages_list.row(duplicate_item))
        del self._imported_obj_filepaths[duplicate_idx]
    if obj_filepath:
        self._add_single_stage(obj_filepath)
        self._imported_obj_filepaths.append(obj_filepath)
        self._imported_stages_list.sortItems()
    return Status.OK