mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
GUI: Fix edit-copy-line action crashing/copying wrong line
When the view was unfiltered, this crashed. When the view was range filtered, this copied the wrong line. Spotted by Stefan Kost.
This commit is contained in:
parent
1864f7c57b
commit
867a312f93
1 changed files with 3 additions and 8 deletions
|
@ -1964,14 +1964,9 @@ class Window (object):
|
||||||
|
|
||||||
def handle_edit_copy_line_action_activate (self, action):
|
def handle_edit_copy_line_action_activate (self, action):
|
||||||
|
|
||||||
line_index = self.get_active_line_index ()
|
line = self.get_active_line ()
|
||||||
line = self.log_file.get_full_line (line_index)
|
log_line = Data.LogLine (line)
|
||||||
|
self.clipboard.set_text (log_line.line_string ())
|
||||||
# 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):
|
def handle_edit_copy_message_action_activate (self, action):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue