Fix copying of line to clipboard

This commit is contained in:
René Stadler 2007-12-04 16:34:53 +02:00 committed by Stefan Sauer
parent 60e794e8a2
commit 492f663a5a

View file

@ -1565,7 +1565,11 @@ class Window (object):
line_index = self.get_active_line_index ()
line = self.log_file.get_full_line (line_index)
self.logger.warning ("FIXME: This gets the wrong level; we still have the level in the model only (d'oh)")
# FIXME:
level = self.log_filter[(line_index,)][LogModelBase.COL_LEVEL]
line[LogModelBase.COL_LEVEL] = level
self.clipboard.set_text (line.line_string ())
def handle_edit_copy_message_action_activate (self, action):