]> sigrok.org Git - pulseview.git/commitdiff
InputFile: Use new reset() function to allow re-reading file
authorSoeren Apel <redacted>
Mon, 2 May 2016 20:22:39 +0000 (22:22 +0200)
committerUwe Hermann <redacted>
Mon, 9 May 2016 11:04:55 +0000 (13:04 +0200)
Commit 519d0ccbe67d005a9c442795ce3b8255e78ca46d tried to solve
the problem of being unable to re-read an opened file by clicking
the "run" button. However, the solution is insufficient.
PV expects the session device to be updated after the open()
call. If it is not, the device settings popup will show the
settings of the previously used device.

This patch fixes this and also makes use of the new reset()
method to allow re-reading of the file contents. The method
is necessary because otherwise we have to destroy the input
module and create a new instance. This however also means
setting a new session device, which is highly undesirable.
So reset() it is.


No differences found