'Save initial cursors and initial active widget.'

def save_initial_state(self):

    paths = self.paths
    self.initial_widget = self.get_widget()
    self.initial_cursors = {}
    for (i, editor) in enumerate(self.widgets):
        if (editor is self.initial_widget):
            self.initial_path = paths[i]
        try:
            self.initial_cursors[paths[i]] = editor.textCursor()
        except AttributeError:
            pass
