Author: asterix Date: 2008-02-05 10:34:56 +0100 (Tue, 05 Feb 2008) New Revision: 9300
Modified: trunk/src/features_window.py Log: fix traceback when opening features window. fixes #3714
Modified: trunk/src/features_window.py =================================================================== --- trunk/src/features_window.py 2008-02-05 03:09:31 UTC (rev 9299) +++ trunk/src/features_window.py 2008-02-05 09:34:56 UTC (rev 9300) @@ -142,7 +142,10 @@ selection = widget.get_selection() if not selection: return - path = selection.get_selected_rows()[1][0] + rows = selection.get_selected_rows()[1] + if not rows: + return + path = rows[0] available = self.model[path][1] feature = self.model[path][0].decode('utf-8') text = self.features[feature][1] + '\n'