def METHOD_NAME(self, thread):
    '''Called when the grouping data is retrieved'''
    if self.import_thread is None:
        return
    track_data = self.import_track_data
    self.import_thread = None
    self.import_track_data = None
    logger.info('Group import finished, %s new tracks found', len(track_data))
    if len(track_data) == 0:
        self.destroy()
        locations = ';'.join(
            [l.get_location() for l in self.collection.get_libraries()]
        )
        dialogs.info(
            self.exaile.gui.main.window, 'No new tracks found at "%s"' % locations
        )
        return
    self.tags_view.freeze_child_notify()
    self.tags_view.set_model(None)
    # add the data to the model
    for old_group_str, new_group_str, matched_track, newgroups in track_data:
        self.tags_model.append(
            (
                True,
                str(matched_track),
                old_group_str,
                new_group_str,
                matched_track,
                newgroups,
            )
        )
    self.tags_view.set_model(self.tags_model)
    self.tags_view.thaw_child_notify()
    self.ok_button.set_sensitive(True)
    self.tags_vbox.set_visible(True)