]> sigrok.org Git - pulseview.git/commit
trace: fix crash on empty channel name in popup form
authorDaniel Trnka <redacted>
Tue, 2 Jan 2024 21:13:54 +0000 (22:13 +0100)
committerSoeren Apel <redacted>
Fri, 26 Jan 2024 21:35:00 +0000 (22:35 +0100)
commit67784be7a0b4ab46ed566119d182d92695a40ae3
tree41d20141e9fab74ebeb3209f613dabcbdad8abc2
parent105ecffd86f20a153ab32769a54134e3ad859a09
trace: fix crash on empty channel name in popup form

sr_dev_channel_name_set returns SR_ERR_ARG when a channel name is
empty and pulseview crashes once user deletes all characters from
a channel name in trace popup form.

This patch forbids to set empty channel name and keeps last non-empty
name provided by user.
pv/views/trace/trace.cpp