Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/logviewer.py
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-09-29 22:49:29 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-11-02 18:18:03 (GMT)
commitb620c423eecdd76de81f18083a7fa83f1ae2f867 (patch)
tree184f9286c581c0bfe0322bb7d26205b83d8cb393 /logviewer.py
parent027b93f0e341d2de6431753d5f3c395c6aa5b5d7 (diff)
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>
Diffstat (limited to 'logviewer.py')
-rw-r--r--logviewer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/logviewer.py b/logviewer.py
index e87ef77..1a77df0 100644
--- a/logviewer.py
+++ b/logviewer.py
@@ -183,7 +183,8 @@ class MultiLogView(Gtk.HPaned):
selection = self._treeview.get_selection()
if selection is not None:
treestore, text_iter = selection.get_selected()
- self._show_log(treestore.get_value(text_iter, 0))
+ if text_iter is not None:
+ self._show_log(treestore.get_value(text_iter, 0))
def _show_log(self, logfile):
if logfile in self.logs: