decode: Clear error message upon every new session run.
authorUwe Hermann <uwe@hermann-uwe.de>
Thu, 30 Jan 2014 23:47:41 +0000 (00:47 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 30 Jan 2014 23:54:50 +0000 (00:54 +0100)
commit375b6216bdcae93f63538968be84fe514f8b90e5
treed19d054d35654570cc395f83f733cf06b83546be
parente7e57b252765945cbd5d50305ace07a2818b9087
decode: Clear error message upon every new session run.

When a decoder throws an exception, i.e. srd_session_send() returns an error,
PulseView shows a red "Failed to initialise decoder" banner in the
decode trace at the moment.

This can happen when e.g. invalid option values are set in the PD popup,
or invalid probe combinations, and so on. However, after the user resolved
the error condition (e.g. selected a proper set of probes / options) the
red error banner would still remain visible and no re-decoding would happen.

This patch fixes that.
pv/data/decoderstack.cpp