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): |
183 | 183 | selection = self._treeview.get_selection() |
184 | 184 | if selection is not None: |
185 | 185 | 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)) |
187 | 188 | |
188 | 189 | def _show_log(self, logfile): |
189 | 190 | if logfile in self.logs: |