'List widget item selection change handler.'

def item_selection_changed(self):

    row = self.current_row()
    if (self.count() and (row >= 0)):
        if (('</b></big><br>' in self.list.currentItem().text()) and (row == 0)):
            self.next_row()
        if (self.mode == self.FILE_MODE):
            try:
                stack_index = self.paths.index(self.filtered_path[row])
                self.plugin = self.widgets[stack_index][1]
                plugin_index = self.plugins_instances.index(self.plugin)
                real_index = self.get_stack_index(stack_index, plugin_index)
                self.sig_goto_file.emit(real_index, self.plugin.get_current_tab_manager())
                self.goto_line(self.line_number)
                try:
                    self.plugin.switch_to_plugin()
                    self.raise_()
                except AttributeError:
                    pass
                self.edit.setFocus()
            except ValueError:
                pass
        else:
            line_number = self.filtered_symbol_lines[row]
            self.goto_line(line_number)
