Ticket #3970: 0001-Select-row-if-there-is-a-value-SL-3970.patch

File 0001-Select-row-if-there-is-a-value-SL-3970.patch, 997 bytes (added by humitos, 12 years ago)
  • logviewer.py

    From 6b5961b917cb8d02c269059b68c052fae51afb08 Mon Sep 17 00:00:00 2001
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Sat, 29 Sep 2012 19:49:29 -0300
    Subject: [PATCH Log] Select row if there is a value SL #3970
    
    Do not try to select a row if there is no value
    to select. This avoid a trace in the logfile.
    
    Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
    ---
     logviewer.py | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/logviewer.py b/logviewer.py
    index e87ef77..1a77df0 100644
    a b class MultiLogView(Gtk.HPaned): 
    183183        selection = self._treeview.get_selection()
    184184        if selection is not None:
    185185            treestore, text_iter = selection.get_selected()
    186             self._show_log(treestore.get_value(text_iter, 0))
     186            if text_iter is not None:
     187                self._show_log(treestore.get_value(text_iter, 0))
    187188
    188189    def _show_log(self, logfile):
    189190        if logfile in self.logs: